diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 073fbc27514..812ddbb177b 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -1049,7 +1049,7 @@ class procurement_order(osv.osv): #temporary context passed in write to prevent an infinite loop ctx_wkf = dict(context or {}) ctx_wkf['workflow.trg_write.%s' % self._name] = False - self.write(cr, uid, [procurement.id], {'message':message}, context=context) + self.write(cr, uid, [procurement.id], {'message':message}, context=ctx_wkf) return False if user.company_id and user.company_id.partner_id: