[FIX] stock_pull_list: send company recordset to _get_rule

This commit is contained in:
Héctor Villarreal Ortega
2020-10-23 12:21:07 +02:00
committed by Lois Rilo
parent 19b165dff1
commit aedd45fd63

View File

@@ -122,7 +122,7 @@ class PullListWizard(models.TransientModel):
def _get_stock_rule_id(self, product_id, location_id):
values = {
"warehouse_id": self.warehouse_id,
"company_id": self.env.user.company_id.id,
"company_id": self.env.user.company_id,
}
stock_rule_id = self.env["procurement.group"]._get_rule(
product_id, location_id, values)