Remove _rec_name from mrp.bom because there is now a native name_get()

This commit is contained in:
Alexis de Lattre
2019-12-02 11:37:41 +01:00
parent da6185238d
commit fc57c6259e

View File

@@ -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)