From cdd5b4f130c5b1bb62f04e61c30f62804e7c51c7 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Fri, 4 Oct 2013 17:56:00 +0200 Subject: [PATCH] [FIX] purchase: use the correct variable, finally bzr revid: mat@openerp.com-20131004155600-vqasj1w07uhnvdmy --- addons/purchase/purchase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: