Search other moves from the same product

This commit is contained in:
Cédric Krier committed 2021-03-23 18:59:17 +01:00
1 parent e6ffcf7775
commit 076dcdda0b
1 file changed
+1
+1
View File
@@ -254,6 +254,7 @@ class QuantityIssue(
for product_quantity in product_quantities:
if product_quantity.quantity < 0:
moves = Move.search([
('product', '=', product.id),
('planned_date', '=', product_quantity.date),
('from_location', 'child_of',
[warehouse.id], 'parent'),