[FIX] solve bugs from test 11

This commit is contained in:
Nossibaelhadi 2026-01-08 01:09:58 +03:00
parent f80adeb9c5
commit 228053c1c0
1 changed files with 2 additions and 1 deletions

View File

@ -313,7 +313,8 @@ class AccountRegisterPayment(models.TransientModel):
if errors:
raise ValidationError("\n".join(errors))
self.communication += "******" + self.bank_id.name + "******" + str(self.last_digits)
digit = self.bank_id.name + "******" + str(self.last_digits) if self.bank_id.name and str(self.last_digits) else ""
self.communication += digit
res = super(AccountRegisterPayment,
self.with_context(skip_account_move_synchronization=True)).action_create_payments()