[FIX] stock: always set the internal transfers picking type as active

bzr revid: qdp-launchpad@openerp.com-20131206163243-7v6y4szabdyrgiu9
This commit is contained in:
Quentin (OpenERP) 2013-12-06 17:32:43 +01:00
parent a0caaa3d6d
commit eabe8af3bb
1 changed files with 1 additions and 2 deletions

View File

@ -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={