[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
This commit is contained in:
Nicolas Martinelli
2016-03-31 12:54:49 +02:00
parent 26b8bf52d0
commit 41c42e8623
+1 -1
View File
@@ -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()