[FIX] stock: on write of the reception method of a warehouse, recreate the pull rules of reception route in MTO always
bzr revid: qdp-launchpad@openerp.com-20131024081901-r53dvxu2xnsz4mp8
This commit is contained in:
parent
86d58ed2dd
commit
085cfd6b59
|
@ -2495,7 +2495,7 @@ class stock_warehouse(osv.osv):
|
||||||
for push_rule in push_rules_list:
|
for push_rule in push_rules_list:
|
||||||
push_obj.create(cr, uid, vals=push_rule, context=context)
|
push_obj.create(cr, uid, vals=push_rule, context=context)
|
||||||
for pull_rule in pull_rules_list:
|
for pull_rule in pull_rules_list:
|
||||||
#all pull rules in reception route are mto, because we don't won't to wait for the scheduler to trigger an orderpoint on input location
|
#all pull rules in reception route are mto, because we don't want to wait for the scheduler to trigger an orderpoint on input location
|
||||||
pull_rule['procure_method'] = 'make_to_order'
|
pull_rule['procure_method'] = 'make_to_order'
|
||||||
pull_obj.create(cr, uid, vals=pull_rule, context=context)
|
pull_obj.create(cr, uid, vals=pull_rule, context=context)
|
||||||
|
|
||||||
|
@ -2574,6 +2574,8 @@ class stock_warehouse(osv.osv):
|
||||||
for push_rule in push_rules_list:
|
for push_rule in push_rules_list:
|
||||||
push_obj.create(cr, uid, vals=push_rule, context=context)
|
push_obj.create(cr, uid, vals=push_rule, context=context)
|
||||||
for pull_rule in pull_rules_list:
|
for pull_rule in pull_rules_list:
|
||||||
|
#all pull rules in reception route are mto, because we don't want to wait for the scheduler to trigger an orderpoint on input location
|
||||||
|
pull_rule['procure_method'] = 'make_to_order'
|
||||||
pull_obj.create(cr, uid, vals=pull_rule, context=context)
|
pull_obj.create(cr, uid, vals=pull_rule, context=context)
|
||||||
|
|
||||||
route_obj.write(cr, uid, warehouse.crossdock_route_id.id, {'active': new_reception_step != 'one_step' and new_delivery_step != 'ship_only'}, context=context)
|
route_obj.write(cr, uid, warehouse.crossdock_route_id.id, {'active': new_reception_step != 'one_step' and new_delivery_step != 'ship_only'}, context=context)
|
||||||
|
|
Loading…
Reference in New Issue