changeset 2c99b220903c in modules/stock_quantity_issue:default
details:
https://hg.tryton.org/modules/stock_quantity_issue?cmd=changeset&node=2c99b220903c
description:
Search other moves from the same product
diffstat:
stock.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 38df499579fd -r 2c99b220903c stock.py
--- a/stock.py Tue Mar 23 16:44:10 2021 +0100
+++ b/stock.py Tue Mar 23 18:59:17 2021 +0100
@@ -254,6 +254,7 @@
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'),