[FIX] purchase: block workflow when supplier check fails, even if already has set an error message
lp bug: https://launchpad.net/bugs/1236191 fixed bzr revid: mat@openerp.com-20131007081014-8p0u7s0svx7gokg1
This commit is contained in:
parent
cdd5b4f130
commit
18528adaff
|
@ -1045,7 +1045,8 @@ class procurement_order(osv.osv):
|
|||
elif not partner_obj.address_get(cr, uid, [partner.id], ['delivery'])['delivery']:
|
||||
message = _('No address defined for the supplier')
|
||||
|
||||
if message and procurement.message != message:
|
||||
if message:
|
||||
if procurement.message != message:
|
||||
#temporary context passed in write to prevent an infinite loop
|
||||
ctx_wkf = dict(context or {})
|
||||
ctx_wkf['workflow.trg_write.%s' % self._name] = False
|
||||
|
|
Loading…
Reference in New Issue