From 2723b201295f6f29c121b869f20df6a576d2ec02 Mon Sep 17 00:00:00 2001 From: Rifakat Date: Mon, 1 Oct 2012 17:22:25 +0530 Subject: [PATCH] [FIX] stock: corrected picking type of an internal move from Outgoing to Internal lp bug: https://launchpad.net/bugs/890476 fixed bzr revid: rha@tinyerp.com-20121001115225-fg97r5fdttyc09js --- 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 8e1180352c2..cc0862bc40b 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2125,7 +2125,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: