Skip to content

Commit

Permalink
[FIX] sale: mail notification pay now translatable
Browse files Browse the repository at this point in the history
Before this commit, the template that was rendered when sending
an email to a customer to invite hime to pay online
was not translatable
This was because the override of the template did not have an xml_id

After this commit, it is translatable

OPW 1944258

closes #31396
  • Loading branch information
kebeclibre committed Feb 25, 2019
1 parent 01405ca commit 6af6da5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/sale/data/mail_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
</data>
<!-- Template and notification section -->
<data noupdate="1">
<template id="" inherit_id="mail.mail_notification_paynow" name="oezirhgoi">
<template id="mail_notification_paynow_online" inherit_id="mail.mail_notification_paynow" name="oezirhgoi">
<xpath expr="//t[@t-set='access_name']" position="after">
<t t-if="record._name == 'sale.order'">
<t t-if="record.has_to_be_signed()">
Expand Down
38 changes: 37 additions & 1 deletion addons/sale/i18n/sale.pot
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ msgstr ""

#. module: sale
#: model:mail.template,report_name:sale.email_template_edi_sale
msgid "${(object.name or '').replace('/','_')}${object.state == 'draft' and '_draft' or ''}"
msgid "${(object.name or '').replace('/','_')}"
msgstr ""

#. module: sale
Expand Down Expand Up @@ -432,6 +432,11 @@ msgstr ""
msgid "Accept &amp; Pay"
msgstr ""

#. module: sale
#: model_terms:ir.ui.view,arch_db:sale.mail_notification_paynow_online
msgid "Accept and sign online"
msgstr ""

#. module: sale
#: model:ir.model.fields,field_description:sale.field_sale_order__access_warning
msgid "Access warning"
Expand Down Expand Up @@ -1329,6 +1334,11 @@ msgstr ""
msgid "Forbidden values on non-accountable sale order line"
msgstr ""

#. module: sale
#: selection:res.config.settings,auth_signup_uninvited:0
msgid "Free sign up"
msgstr ""

#. module: sale
#: model_terms:ir.actions.act_window,help:sale.action_account_invoice_report_salesteam
msgid "From this report, you can have an overview of the amount invoiced to your customer. The search tool can also be used to personalise your Invoices reports and so, match this analysis to your needs."
Expand Down Expand Up @@ -1631,6 +1641,12 @@ msgid "Invoicing"
msgstr ""

#. module: sale
#: model_terms:ir.ui.view,arch_db:sale.sale_order_portal_content
msgid "Invoicing Address"
msgstr ""

#. module: sale
#: model:ir.model.fields,field_description:sale.field_product_product__invoice_policy
#: model:ir.model.fields,field_description:sale.field_product_template__invoice_policy
#: model:ir.model.fields,field_description:sale.field_res_config_settings__default_invoice_policy
msgid "Invoicing Policy"
Expand Down Expand Up @@ -2015,6 +2031,11 @@ msgstr ""
msgid "Office chairs can harm your floor: protect it."
msgstr ""

#. module: sale
#: selection:res.config.settings,auth_signup_uninvited:0
msgid "On invitation"
msgstr ""

#. module: sale
#: model_terms:ir.actions.act_window,help:sale.act_res_partner_2_sale_order
#: model_terms:ir.actions.act_window,help:sale.action_orders_salesteams
Expand Down Expand Up @@ -2257,6 +2278,11 @@ msgstr ""
msgid "Pay now"
msgstr ""

#. module: sale
#: model_terms:ir.ui.view,arch_db:sale.mail_notification_paynow_online
msgid "Pay online"
msgstr ""

#. module: sale
#: model_terms:ir.ui.view,arch_db:sale.sale_order_portal_template
msgid "Pay with"
Expand Down Expand Up @@ -3041,6 +3067,11 @@ msgstr ""
msgid "Sell and purchase products in different units of measure"
msgstr ""

#. module: sale
#: model:ir.model.fields,field_description:sale.field_res_config_settings__module_website_sale_digital
msgid "Sell digital products - provide downloadable content on your customer portal"
msgstr ""

#. module: sale
#: model_terms:ir.ui.view,arch_db:sale.res_config_settings_view_form
msgid "Sell products by multiple of unit # per package"
Expand Down Expand Up @@ -3169,6 +3200,11 @@ msgstr ""
msgid "Show standard terms &amp; conditions on orders"
msgstr ""

#. module: sale
#: model_terms:ir.ui.view,arch_db:sale.mail_notification_paynow_online
msgid "Sign and pay online"
msgstr ""

#. module: sale
#: selection:res.company,sale_onboarding_payment_method:0
#: selection:sale.payment.acquirer.onboarding.wizard,payment_method:0
Expand Down

0 comments on commit 6af6da5

Please sign in to comment.