Skip to content

Commit

Permalink
[FIX] account_banking_ach_direct_debit: fix pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiBForgeFlow committed Jun 18, 2024
1 parent 2946cb4 commit 395b68d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class AccountBankingMandate(models.Model):
)
scheme = fields.Selection(
[("CORE", "Basic (CORE)"), ("B2B", "Enterprise (B2B)")],
string="Scheme",
default="CORE",
tracking=True,
)
Expand All @@ -49,8 +48,11 @@ def _check_recurring_type(self):
for mandate in self:
if mandate.type == "recurrent" and not mandate.recurrent_sequence_type:
raise exceptions.ValidationError(
_("The recurrent mandate '%s' must have a sequence type.")
% mandate.unique_mandate_reference
_(
"The recurrent mandate '%(mandate_reference)s' "
"must have a sequence type."
)
% {"mandate_reference": mandate.unique_mandate_reference}
)

@api.depends("unique_mandate_reference", "recurrent_sequence_type")
Expand Down

0 comments on commit 395b68d

Please sign in to comment.