From 95606cd4d7b0e03501ae9a2177c34c270bf8cc98 Mon Sep 17 00:00:00 2001 From: Xavier ALT Date: Mon, 1 Oct 2012 11:00:29 +0200 Subject: [PATCH] [FIX] OPW 50562: stock: fix picking type for chained picking forward port of v6.0 revid: nel@tinyerp.com-20111117130826-1hejw9bonokwalkl lp bug: https://launchpad.net/bugs/890476 fixed bzr revid: xal@openerp.com-20121001090029-jitezscbug6x2w0f --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index b8b14d768c6..dd52404dbd8 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1939,7 +1939,7 @@ class stock_move(osv.osv): old_ptype = location_obj.picking_type_get(cr, uid, picking.move_lines[0].location_id, picking.move_lines[0].location_dest_id) if old_ptype != picking.type: old_pick_name = seq_obj.get(cr, uid, 'stock.picking.' + old_ptype) - self.pool.get('stock.picking').write(cr, uid, [picking.id], {'name': old_pick_name}, context=context) + self.pool.get('stock.picking').write(cr, uid, [picking.id], {'name': old_pick_name, 'type': old_ptype}, context=context) else: pickid = False for move, (loc, dummy, delay, dummy, company_id, ptype) in todo: