Skip to Content
Menu
This question has been flagged
1 Atsakyti
10465 Rodiniai


In my module, there is a many2one selection field that refers to the class stock.quant. By default, it displays the name of product.

I want to display the location of the product. the _recname defined inside the stock.quant class is product_id , i changed the _recname to location_id .. But that dosnt change the display name.. What am missing here..


Portretas
Atmesti
Autorius

@niyas raphy : that doesnt worked

If you can update your question with the code and proper explanations.

You will get the proper answers from the forum.

Search and Display Multiple Fields on Product Many2one (Quotation, SO, PO MO etc) Field
This module allows you to search and display multiple fields in the Product Many2one field across all Odoo screens - such as quotations, sale orders, purchase orders, invoices, and more.
https://apps.odoo.com/apps/modules/17.0/mh_products_search_and_display_multiple_field

Best Answer

Hi,

There might be name_get function defined for the corresponding model. So you have to update it. See this: Use of Name Get Function in Odoo

Thanks

Portretas
Atmesti