bzr revid: fp@tinyerp.com-20081120170145-ghm8utra9iypw1f5
This commit is contained in:
Fabien Pinckaers 2008-11-20 18:01:45 +01:00
parent 6bd4e2c3aa
commit 9139a84b8e
1 changed files with 3 additions and 1 deletions

View File

@ -142,13 +142,15 @@ def _do_split(self, cr, uid, data, context):
for move in too_few:
if not new_picking:
new_picking = pick_obj.copy(cr, uid, pick.id,
{
'name': pool.get('ir.sequence').get(cr, uid, 'stock.picking'),
'move_lines' : [],
'state':'draft',
})
new_obj = move_obj.copy(cr, uid, move.id,
if data['form']['move%s' % move.id] <> 0:
new_obj = move_obj.copy(cr, uid, move.id,
{
'product_qty' : data['form']['move%s' % move.id],
'product_uos_qty':data['form']['move%s' % move.id],