0 votes
7 views
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..

class StockQuant(models.Model):

_name = 'stock.quant'

_description = 'Quants'

_rec_name = 'product_id'
in Back-end by (8.6k points) | 7 views

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
192 questions
163 answers
32 comments
38,835 users