[FIX] stock: add missing context
method check and run have a context argument that was lost Closes #17683
This commit is contained in:
parent
6f8efea28c
commit
27a47eb3c3
|
@ -369,8 +369,8 @@ class procurement_order(osv.osv):
|
||||||
proc_id = procurement_obj.create(cr, uid,
|
proc_id = procurement_obj.create(cr, uid,
|
||||||
self._prepare_orderpoint_procurement(cr, uid, op, qty_rounded, context=context),
|
self._prepare_orderpoint_procurement(cr, uid, op, qty_rounded, context=context),
|
||||||
context=context)
|
context=context)
|
||||||
self.check(cr, uid, [proc_id])
|
self.check(cr, uid, [proc_id], context=context)
|
||||||
self.run(cr, uid, [proc_id])
|
self.run(cr, uid, [proc_id], context=context)
|
||||||
if use_new_cursor:
|
if use_new_cursor:
|
||||||
cr.commit()
|
cr.commit()
|
||||||
except OperationalError:
|
except OperationalError:
|
||||||
|
|
Loading…
Reference in New Issue