[FIX] stock: reception pull rule are now configured with procure_method='make_to_order' because once the procurement order is made on the stock location, the flow should be treated without waiting for the scheduler/an orderpoint

bzr revid: qdp-launchpad@openerp.com-20131023092508-a3xak2lsbgaxgzd9
This commit is contained in:
Quentin (OpenERP) 2013-10-23 11:25:08 +02:00
parent fcbfec1519
commit bad33d8b8a
1 changed files with 2 additions and 0 deletions

View File

@ -2457,6 +2457,8 @@ class stock_warehouse(osv.osv):
for push_rule in push_rules_list:
push_obj.create(cr, uid, vals=push_rule, context=context)
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
pull_rule['procure_method'] = 'make_to_order'
pull_obj.create(cr, uid, vals=pull_rule, context=context)
#create MTS route and pull rules for delivery a specific route MTO to be set on the product