mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
FIX crash when communication=null on payment line
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user