FIX crash when communication=null on payment line

This commit is contained in:
Alexis de Lattre
2021-07-30 23:27:02 +02:00
parent 8be9e68fbc
commit ee56b631e4

View File

@@ -162,3 +162,5 @@ class AccountPaymentLine(models.Model):
raise UserError(
_("Missing Partner Bank Account on payment line %s") % self.name
)
if not self.communication:
raise UserError(_("Communication is empty on payment line %s.") % self.name)