diff --git a/mrp_production_real_cost/models/mrp_production.py b/mrp_production_real_cost/models/mrp_production.py index 5968126ac56..94f5bc5e35e 100644 --- a/mrp_production_real_cost/models/mrp_production.py +++ b/mrp_production_real_cost/models/mrp_production.py @@ -35,7 +35,7 @@ def action_production_end(self): # This is needed because commit # https://github.com/odoo/odoo/commit/ # 6f29bfc181d23d70d29776d96b4318e9ee2c93a9 - # introduces a weird behavior on the next call, provoking an error + # introduces a weird behavior on the next call, provoking an error. production.sudo().refresh() production.mapped('move_created_ids2').filtered( lambda l: l.state == 'done' diff --git a/mrp_production_real_cost/models/procurement_order.py b/mrp_production_real_cost/models/procurement_order.py index 4a60dc2deaf..be1ec39b21c 100644 --- a/mrp_production_real_cost/models/procurement_order.py +++ b/mrp_production_real_cost/models/procurement_order.py @@ -14,6 +14,6 @@ def _check(self, procurement): # This is needed because commit # https://github.com/odoo/odoo/commit/ # 6f29bfc181d23d70d29776d96b4318e9ee2c93a9 - # introduces a weird behavior on the next call, provoking an error + # introduces a weird behavior on the next call, provoking an error. procurement.production_id.sudo().refresh() return super(ProcurementOrder, self)._check(procurement)