From 50ef4756a239d301aa632b4c58d2688c839fead4 Mon Sep 17 00:00:00 2001 From: Jordi Ballester Alomar Date: Tue, 30 Oct 2018 10:40:44 +0100 Subject: [PATCH] [stock_request_kanban][FIX] _get_inventory_kanban_domain --- stock_request_kanban/models/stock_inventory_kanban.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stock_request_kanban/models/stock_inventory_kanban.py b/stock_request_kanban/models/stock_inventory_kanban.py index 3652af740..36b8ccb8e 100644 --- a/stock_request_kanban/models/stock_inventory_kanban.py +++ b/stock_request_kanban/models/stock_inventory_kanban.py @@ -74,15 +74,15 @@ class StockInventoryKanban(models.Model): def _get_inventory_kanban_domain(self): domain = [] if self.warehouse_ids: - expression.AND(( + domain = expression.AND(( domain, [('warehouse_id', 'in', self.warehouse_ids.ids)] )) if self.product_ids: - expression.AND(( + domain = expression.AND(( domain, [('product_id', 'in', self.product_ids.ids)] )) if self.location_ids: - expression.AND(( + domain = expression.AND(( domain, [('location_id', 'in', self.location_ids.ids)] )) return domain