Remove _rec_name from mrp.bom because there is now a native name_get()
This commit is contained in:
@@ -8,6 +8,6 @@ from odoo import models, fields
|
||||
|
||||
class MrpBom(models.Model):
|
||||
_inherit = 'mrp.bom'
|
||||
_rec_name = 'product_id'
|
||||
# _rec_name = 'product_id'
|
||||
|
||||
sale_ok = fields.Boolean(related='product_tmpl_id.sale_ok', store=True)
|
||||
|
||||
Reference in New Issue
Block a user