[FIX] need to supply existing picking_id

bzr revid: jco@openerp.com-20130628164418-wljpcwwmc2zfdj6f
This commit is contained in:
Josse Colpaert
2013-06-28 18:44:18 +02:00
parent f4826a756c
commit 1beba08ebe
+2 -2
View File
@@ -1641,7 +1641,7 @@ class stock_picking(osv.osv):
#take care of packaging for completed moves
possible_quants = [x.id for x in move.reserved_quant_ids]
self.make_packaging(cr, uid, picking_id, move, possible_quants, context=context)
self.make_packaging(cr, uid, new_picking, move, possible_quants, context=context)
@@ -1660,7 +1660,7 @@ class stock_picking(osv.osv):
move_obj.write(cr, uid, [move.id], defaults)
possible_quants = [x.id for x in move.reserved_quant_ids]
self.make_packaging(cr, uid, picking_id, move, possible_quants, context=context)
self.make_packaging(cr, uid, new_picking, move, possible_quants, context=context)
# At first we confirm the new picking (if necessary)
if new_picking:
self.signal_button_confirm(cr, uid, [new_picking])