[IMP] stock: Give a new reference to the backorders, and keep the old reference for the partial picking done
lp bug: https://launchpad.net/bugs/891664 fixed bzr revid: ls@numerigraphe.fr-20120206165739-d4ov9wz6fich0cr1
This commit is contained in:
@@ -1247,9 +1247,14 @@ class stock_picking(osv.osv):
|
||||
for move in too_few:
|
||||
product_qty = move_product_qty[move.id]
|
||||
if not new_picking:
|
||||
new_picking_name = pick.name
|
||||
self.write(cr, uid, [pick.id],
|
||||
{'name': sequence_obj.get(cr, uid,
|
||||
'stock.picking.%s'%(pick.type)),
|
||||
})
|
||||
new_picking = self.copy(cr, uid, pick.id,
|
||||
{
|
||||
'name': sequence_obj.get(cr, uid, 'stock.picking.%s'%(pick.type)),
|
||||
'name': new_picking_name,
|
||||
'move_lines' : [],
|
||||
'state':'draft',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user