From 1beba08ebefe4805913e595ca286693739face61 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Fri, 28 Jun 2013 18:44:18 +0200 Subject: [PATCH] [FIX] need to supply existing picking_id bzr revid: jco@openerp.com-20130628164418-wljpcwwmc2zfdj6f --- addons/stock/stock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index c2fec100806..4627cb95676 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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])