mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[stock_request_kanban][FIX] _get_inventory_kanban_domain
This commit is contained in:
committed by
hveficent
parent
e1f7a51a39
commit
50ef4756a2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user