Do not check lot if quantity is zero

review671003
(transplanted from e7b212c95fb4a44ed50c5e00d70a8038a66b57da)
This commit is contained in:
Nicolas Évrard committed 2013-03-18 07:53:56 +01:00
1 parent 3ebfe9a3d6
commit fa356d41cf
1 file changed
+1
+1
View File
@@ -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)):