From bcbb63d933d718f0199a5dbe01c39e8a791c7f61 Mon Sep 17 00:00:00 2001 From: Lois Rilo Date: Mon, 2 Nov 2020 09:51:55 +0100 Subject: [PATCH] [12.0][FIX] mrp_multi_level: send company recordset to _get_rule Error was raising due to odoo/odoo@31a54b5. --- mrp_multi_level/models/product_mrp_area.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrp_multi_level/models/product_mrp_area.py b/mrp_multi_level/models/product_mrp_area.py index 24b9140c0..5879765a8 100644 --- a/mrp_multi_level/models/product_mrp_area.py +++ b/mrp_multi_level/models/product_mrp_area.py @@ -173,7 +173,7 @@ class ProductMRPArea(models.Model): proc_loc = rec.location_proc_id or rec.mrp_area_id.location_id values = { 'warehouse_id': rec.mrp_area_id.warehouse_id, - 'company_id': self.env.user.company_id.id, + 'company_id': self.env.user.company_id, # TODO: better way to get company } rule = group_obj._get_rule(rec.product_id, proc_loc, values)