[IMP] stock split into add condition qty <=0

bzr revid: nel@tinyerp.com-20100617095552-teeaeyd2yuwb46y0
This commit is contained in:
nel@tinyerp.com
2010-06-17 11:55:52 +02:00
parent 6482a6f58e
commit 8c1ef52f07
+1 -1
View File
@@ -62,7 +62,7 @@ class stock_split_into(osv.osv_memory):
move_qty = move.product_qty
uos_qty_rest = move.product_uos_qty
quantity_rest = move_qty - quantity
if quantity_rest == 0:
if (quantity_rest == 0) or (quantity <= 0) :
continue
sequence = ir_sequence_obj.get(cr, uid, 'stock.lot.tracking')
tracking_id = track_obj.create(cr, uid, {'name': sequence}, {'product_id': move.product_id.id})