From eabe8af3bb1bacb931faf0318ebb6532bbd4b4fe Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Fri, 6 Dec 2013 17:32:43 +0100 Subject: [PATCH] [FIX] stock: always set the internal transfers picking type as active bzr revid: qdp-launchpad@openerp.com-20131206163243-7v6y4szabdyrgiu9 --- addons/stock/stock.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 93fd62f20ca..d67f98d8f6b 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2532,7 +2532,6 @@ class stock_warehouse(osv.osv): output_loc = warehouse.lot_stock_id picking_type_obj.write(cr, uid, warehouse.in_type_id.id, {'default_location_dest_id': input_loc.id}, context=context) picking_type_obj.write(cr, uid, warehouse.out_type_id.id, {'default_location_src_id': output_loc.id}, context=context) - picking_type_obj.write(cr, uid, warehouse.int_type_id.id, {'active': new_reception_step != 'one_step'}, context=context) picking_type_obj.write(cr, uid, warehouse.pick_type_id.id, {'active': new_delivery_step != 'ship_only'}, context=context) picking_type_obj.write(cr, uid, warehouse.pack_type_id.id, {'active': new_delivery_step == 'pick_pack_ship'}, context=context) @@ -2666,7 +2665,7 @@ class stock_warehouse(osv.osv): 'sequence_id': int_seq_id, 'default_location_src_id': wh_stock_loc.id, 'default_location_dest_id': wh_stock_loc.id, - 'active': reception_steps != 'one_step', + 'active': True, 'pack': False, 'color': color}, context=context) pack_type_id = picking_type_obj.create(cr, uid, vals={