Fix odoo warning because of duplicate field names

This commit is contained in:
Guewen Baconnier
2020-03-25 10:09:08 +01:00
parent 2bbee6e79d
commit f9a146a078

View File

@@ -150,7 +150,9 @@ class CubiscanWizardLine(models.TransientModel):
store=False,
)
barcode = fields.Char("GTIN")
packaging_id = fields.Many2one("product.packaging", readonly=True)
packaging_id = fields.Many2one(
"product.packaging", string="Packaging (rel)", readonly=True
)
packaging_type_id = fields.Many2one(
"product.packaging.type", readonly=True, required=True
)