From bad33d8b8a475f2c97af63620cbf58f6e9d3536d Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Wed, 23 Oct 2013 11:25:08 +0200 Subject: [PATCH] [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 --- addons/stock/stock.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 5239c9a7d47..738490f3a4b 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -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