diff options
| author | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2013-12-06 17:32:43 +0100 |
|---|---|---|
| committer | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2013-12-06 17:32:43 +0100 |
| commit | eabe8af3bb1bacb931faf0318ebb6532bbd4b4fe (patch) | |
| tree | 2633c7d3dd498f7410d5f0584e67f973490c2864 | |
| parent | a0caaa3d6d16bb87b58040a9325b65ccbc3c6a5e (diff) | |
[FIX] stock: always set the internal transfers picking type as active
bzr revid: qdp-launchpad@openerp.com-20131206163243-7v6y4szabdyrgiu9
| -rw-r--r-- | addons/stock/stock.py | 3 |
1 files changed, 1 insertions, 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={ |
