Hi, guys. I have a problem in many2one field. So here is my code in model.py
prodname = fields.Many2one('product.template', string='Product Name')
I want to drop down my product list. the problem is, sometimes is success also error. the error is like this
AttributeError: '_unknown' object has no attribute 'id'
In the Technical > Fields, the related model is '_unknown' that is supposed to 'product.template', right?
Please, help me to fix this. Thanks a lot.
Yes, thank you so much Yurii. I forgot to add the "depends" value. Thank you, it's work.