[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:
Goffin Simon
2015-11-19 16:19:01 +01:00
parent b528afe299
commit 38c80ad7f9
+1
View File
@@ -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: