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 c2f4f9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ def generated2uploaded(self):
"Automatically switched from <b>First</b> to "
"<b>Recurring</b> when the debit order "
"<a href=# data-oe-model=account.payment.order "
"data-oe-id=%d>%s</a> has been marked as uploaded."
"data-oe-id=%(order_id)d>%(order_name)s</a> "
"has been marked as uploaded."
)
% (order.id, order.name)
% {"order_id": order.id, "order_name": order.name}
)
return res

0 comments on commit c2f4f9c

Please sign in to comment.