[stock_request_kanban][FIX] _get_inventory_kanban_domain

This commit is contained in:
Jordi Ballester Alomar
2018-10-30 10:40:44 +01:00
committed by hveficent
parent e1f7a51a39
commit 50ef4756a2

View File

@@ -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