[FIX] stock: modify default destination location for Pick
Ship in 2 steps: The Packing zone location is inactive but it is used by default as destination location (instead of Output) in the Pick operation. opw-643734
This commit is contained in:
parent
0cffd6f825
commit
e69a9b1ea8
|
@ -3326,7 +3326,10 @@ 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.pick_type_id.id, {'active': new_delivery_step != 'ship_only'}, context=context)
|
||||
picking_type_obj.write(cr, uid, warehouse.pick_type_id.id, {
|
||||
'active': new_delivery_step != 'ship_only',
|
||||
'default_location_dest_id': output_loc.id if new_delivery_step == 'pick_ship' else warehouse.wh_pack_stock_loc_id.id,
|
||||
}, context=context)
|
||||
picking_type_obj.write(cr, uid, warehouse.pack_type_id.id, {'active': new_delivery_step == 'pick_pack_ship'}, context=context)
|
||||
|
||||
routes_dict = self.get_routes_dict(cr, uid, ids, warehouse, context=context)
|
||||
|
@ -3448,7 +3451,7 @@ class stock_warehouse(osv.osv):
|
|||
'code': 'internal',
|
||||
'sequence_id': pick_seq_id,
|
||||
'default_location_src_id': wh_stock_loc.id,
|
||||
'default_location_dest_id': wh_pack_stock_loc.id,
|
||||
'default_location_dest_id': output_loc.id if warehouse.delivery_steps == 'pick_ship' else wh_pack_stock_loc.id,
|
||||
'active': warehouse.delivery_steps != 'ship_only',
|
||||
'sequence': max_sequence + 2,
|
||||
'color': color}, context=context)
|
||||
|
|
Loading…
Reference in New Issue