From 41c42e8623be94e9aeaf7729aa95fe79224666d7 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Thu, 31 Mar 2016 11:49:59 +0200 Subject: [PATCH] [FIX] stock: run procurement once The call to the method `run` is executed at the procurement creation if the key `procurement_autorun_defer` is not in the context. This is not necessary since the call to `run` is explicitly done afterwards. opw-672170 --- addons/stock/procurement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/procurement.py b/addons/stock/procurement.py index 9db0ce001c7..6d1a045ece8 100644 --- a/addons/stock/procurement.py +++ b/addons/stock/procurement.py @@ -506,7 +506,7 @@ class procurement_order(osv.osv): if qty_rounded > 0: proc_id = procurement_obj.create(cr, uid, self._prepare_orderpoint_procurement(cr, uid, op, qty_rounded, context=context), - context=context) + context=dict(context, procurement_autorun_defer=True)) tot_procs.append(proc_id) if use_new_cursor: cr.commit()