From 076dcdda0b2364a5e7e445157702f47defe275c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 23 Mar 2021 18:59:17 +0100 Subject: [PATCH] Search other moves from the same product --- stock.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stock.py b/stock.py index 648bc51a7d..e77ab73380 100644 --- a/stock.py +++ b/stock.py @@ -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'),