Add qty > 0 in stock_lot_check_moves_without_lot_before_lot_required.diff
This commit is contained in:
parent
983599368b
commit
f327e41a37
|
@ -43,7 +43,7 @@ diff -r f62cd7f3690c trytond/trytond/modules/stock_lot/product.py
|
|||
+
|
||||
+ cursor = Transaction().connection.cursor()
|
||||
+
|
||||
+ sql_where = ((move.lot == Null) & (template.id == self.id) & (move.state == 'done'))
|
||||
+ sql_where = ((move.lot == Null) & (template.id == self.id) & (move.state == 'done') & (move.quantity > 0))
|
||||
+ query = move.join(
|
||||
+ product, condition=product.id == move.product).join(
|
||||
+ template, condition=template.id == product.template).join(
|
||||
|
|
Loading…
Reference in New Issue