[FIX] solve bugs from test 11
This commit is contained in:
parent
f80adeb9c5
commit
228053c1c0
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue