From aedd45fd63ea9b9ef709626db25e6c469a65b4f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Villarreal=20Ortega?= Date: Fri, 23 Oct 2020 12:21:07 +0200 Subject: [PATCH] [FIX] stock_pull_list: send company recordset to _get_rule --- stock_pull_list/wizards/stock_pull_list_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_pull_list/wizards/stock_pull_list_wizard.py b/stock_pull_list/wizards/stock_pull_list_wizard.py index c27fc2976..a1ff9636c 100644 --- a/stock_pull_list/wizards/stock_pull_list_wizard.py +++ b/stock_pull_list/wizards/stock_pull_list_wizard.py @@ -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)