From f69fa14b74bdc86464112c669cd2d121aede62bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 1 Dec 2024 19:05:34 +0100 Subject: [PATCH] Use msg_gettext to translate SEPA mandate title Closes #13722 --- modules/account_payment_sepa/mandate.fodt | 4 ++-- modules/account_payment_sepa/payment.py | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/modules/account_payment_sepa/mandate.fodt b/modules/account_payment_sepa/mandate.fodt index 2123999156..a12b0cbbe8 100644 --- a/modules/account_payment_sepa/mandate.fodt +++ b/modules/account_payment_sepa/mandate.fodt @@ -711,7 +711,7 @@ - <gettext('account_payment_sepa.msg_mandate_title', scheme=mandate.scheme_string)> + <msg_gettext('account_payment_sepa.msg_mandate_title', scheme=mandate.scheme_string)> @@ -721,7 +721,7 @@ - <gettext('account_payment_sepa.msg_mandate_authorisation_statement', creditor=mandate.company.rec_name)>As part of your rights, you are entitled to a refund from your bank under the terms and conditions of your agreement with your bank. A refund must be claimed within 8 weeks starting from the date on which your account was debited. + <msg_gettext('account_payment_sepa.msg_mandate_authorisation_statement', creditor=mandate.company.rec_name)>As part of your rights, you are entitled to a refund from your bank under the terms and conditions of your agreement with your bank. A refund must be claimed within 8 weeks starting from the date on which your account was debited. diff --git a/modules/account_payment_sepa/payment.py b/modules/account_payment_sepa/payment.py index 60b6b598f7..687fb3d335 100644 --- a/modules/account_payment_sepa/payment.py +++ b/modules/account_payment_sepa/payment.py @@ -792,12 +792,6 @@ class Mandate(Workflow, ModelSQL, ModelView): class MandateReport(CompanyReport): __name__ = 'account.payment.sepa.mandate' - @classmethod - def get_context(cls, records, header, data): - context = super().get_context(records, header, data) - context['gettext'] = gettext - return context - class Message(Workflow, ModelSQL, ModelView): __name__ = 'account.payment.sepa.message'