[FIX] purchase: use the correct variable, finally

bzr revid: mat@openerp.com-20131004155600-vqasj1w07uhnvdmy
This commit is contained in:
Martin Trigaux
2013-10-04 17:56:00 +02:00
parent 4c0c18b803
commit cdd5b4f130
+1 -1
View File
@@ -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: