[FIX] warning: Blocking messages with PO
Before the fix, it was possible to create a PO with a vendor who had a Blocking Message set on. opw:656875
This commit is contained in:
@@ -97,6 +97,7 @@ class purchase_order(osv.Model):
|
||||
'message': message
|
||||
}
|
||||
if partner.purchase_warn == 'block':
|
||||
self.update({'partner_id': False})
|
||||
return {'warning': warning}
|
||||
|
||||
if warning:
|
||||
|
||||
Reference in New Issue
Block a user