[FIX] stock: add missing context

method check and run have a context argument that was lost

Closes #17683
This commit is contained in:
Leonardo Rochael Almeida
2017-06-19 13:32:49 +02:00
committed by Martin Trigaux
parent 6f8efea28c
commit 27a47eb3c3
+2 -2
View File
@@ -369,8 +369,8 @@ class procurement_order(osv.osv):
proc_id = procurement_obj.create(cr, uid,
self._prepare_orderpoint_procurement(cr, uid, op, qty_rounded, context=context),
context=context)
self.check(cr, uid, [proc_id])
self.run(cr, uid, [proc_id])
self.check(cr, uid, [proc_id], context=context)
self.run(cr, uid, [proc_id], context=context)
if use_new_cursor:
cr.commit()
except OperationalError: