From 1a99a47faca6300a06443dc36cc277d9b0c11a64 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Wed, 27 Nov 2019 15:54:00 +0000 Subject: [PATCH] [FIX] stock: wrong stored attribute, replaced by store closes odoo/odoo#40979 Related: odoo/enterprise#6924 Signed-off-by: Victor Feyens (vfe) --- addons/stock/models/stock_production_lot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/models/stock_production_lot.py b/addons/stock/models/stock_production_lot.py index 46f020c890d..0c56abb18b6 100644 --- a/addons/stock/models/stock_production_lot.py +++ b/addons/stock/models/stock_production_lot.py @@ -26,7 +26,7 @@ class ProductionLot(models.Model): product_qty = fields.Float('Quantity', compute='_product_qty') note = fields.Html(string='Description') display_complete = fields.Boolean(compute='_compute_display_complete') - company_id = fields.Many2one('res.company', 'Company', required=True, stored=True, index=True) + company_id = fields.Many2one('res.company', 'Company', required=True, store=True, index=True) _sql_constraints = [ ('name_ref_uniq', 'unique (name, product_id, company_id)', 'The combination of serial number and product must be unique across a company !'),