mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[12.0][FIX] mrp_multi_level: send company recordset to _get_rule
Error was raising due to odoo/odoo@31a54b5.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user