[FIX] stock: small fix in yml

bzr revid: hmo@tinyerp.com-20111223104442-26gwo9kr6lnqzaym
This commit is contained in:
Harry (OpenERP) 2011-12-23 16:14:42 +05:30
parent c543a324dc
commit 6b7bbef52d
1 changed files with 1 additions and 1 deletions

View File

@ -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