[FIX] stock: small fix in yml
bzr revid: hmo@tinyerp.com-20111223104442-26gwo9kr6lnqzaym
This commit is contained in:
parent
c543a324dc
commit
6b7bbef52d
|
@ -230,7 +230,7 @@
|
|||
context.update({'active_model': 'stock.move', 'active_id': move.id, 'active_ids': [move.id]})
|
||||
total_qty = move.product_qty
|
||||
split_qty = 10
|
||||
while(total_qty<=0):
|
||||
while(total_qty>0):
|
||||
split_id = stock_split.create(cr, uid, {'quantity': split_qty}, context=context)
|
||||
stock_split.split(cr, uid, [split_id], context=context)
|
||||
total_qty -= split_qty
|
||||
|
|
Loading…
Reference in New Issue