Use msg_gettext to translate SEPA mandate title

Closes #13722
This commit is contained in:
Cédric Krier
2024-12-01 19:05:34 +01:00
parent 26930ddda9
commit f69fa14b74
2 changed files with 2 additions and 8 deletions
+2 -2
View File
@@ -711,7 +711,7 @@
<table:table-column table:style-name="Table2.A"/>
<table:table-row>
<table:table-cell table:style-name="Table2.A1" office:value-type="string">
<text:h text:style-name="P39" text:outline-level="1"><text:placeholder text:placeholder-type="text">&lt;gettext(&apos;account_payment_sepa.msg_mandate_title&apos;, scheme=mandate.scheme_string)&gt;</text:placeholder></text:h>
<text:h text:style-name="P39" text:outline-level="1"><text:placeholder text:placeholder-type="text">&lt;msg_gettext(&apos;account_payment_sepa.msg_mandate_title&apos;, scheme=mandate.scheme_string)&gt;</text:placeholder></text:h>
</table:table-cell>
</table:table-row>
<table:table-row>
@@ -721,7 +721,7 @@
</table:table-row>
<table:table-row>
<table:table-cell table:style-name="Table2.A2" office:value-type="string">
<text:p text:style-name="P6"><text:placeholder text:placeholder-type="text">&lt;gettext(&apos;account_payment_sepa.msg_mandate_authorisation_statement&apos;, creditor=mandate.company.rec_name)&gt;</text:placeholder><text:line-break/>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.</text:p>
<text:p text:style-name="P6"><text:placeholder text:placeholder-type="text">&lt;msg_gettext(&apos;account_payment_sepa.msg_mandate_authorisation_statement&apos;, creditor=mandate.company.rec_name)&gt;</text:placeholder><text:line-break/>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.</text:p>
</table:table-cell>
</table:table-row>
</table:table>
-6
View File
@@ -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'