From fa356d41cf4c41686dbbfea237f1c1069a66a8df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Mon, 18 Mar 2013 07:53:56 +0100 Subject: [PATCH] Do not check lot if quantity is zero review671003 (transplanted from e7b212c95fb4a44ed50c5e00d70a8038a66b57da) --- stock.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stock.py b/stock.py index 3a9bfb114d..2e74bf653e 100644 --- a/stock.py +++ b/stock.py @@ -47,6 +47,7 @@ class Move: "Check if lot is required" for move in moves: if (move.state == 'done' + and move.internal_quantity and not move.lot and move.product.lot_is_required( move.from_location, move.to_location)):