[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user