summaryrefslogtreecommitdiff
path: root/addons/coupon/data/coupon_email_data.xml
diff options
context:
space:
mode:
authornie <nie@odoo.com>2021-03-18 15:14:59 +0000
committernie <nie@odoo.com>2021-03-25 07:51:38 +0000
commit981eab82dbb15783bef7e010ffbc21735710dd0a (patch)
tree4ddd405a41a26e6f4144d76f8e91199d2f48a102 /addons/coupon/data/coupon_email_data.xml
parent3826a2645b94e0f62c719814c4dbe4cc6502e1f2 (diff)
[FIX] sale_coupon: translate email subject and template
Steps: - Install Sales - Go to Settings / Translations / Languages - Install Dutch - Go to Settings / Users & Companies / Users - Change demo's language to Dutch - Go to Sales / Configuration / Settings - Activate Coupons & Promotions - Go to Sales / Products / Coupon Programs - Create a new Coupon Program - Click Generate Coupon - Generation Type: Number of Selected Customers - Matching rule: Name contains demo - Generate - Go to Settings / Technical / Email / Emails - Open the email you just sent Bug: Parts of the email are not translated Explanation: The `lang` field is used to determine the template's language. Coupon emails where missing one. Also, the subject of the email wasn't translated. opw:2467640 closes odoo/odoo#68316 X-original-commit: 6fbca2745a36ade4d8e8bdd2f015fd831b872d67 Signed-off-by: backspac <backspac@users.noreply.github.com>
Diffstat (limited to 'addons/coupon/data/coupon_email_data.xml')
-rw-r--r--addons/coupon/data/coupon_email_data.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/coupon/data/coupon_email_data.xml b/addons/coupon/data/coupon_email_data.xml
index d28e2f80947..71d2f80eb8f 100644
--- a/addons/coupon/data/coupon_email_data.xml
+++ b/addons/coupon/data/coupon_email_data.xml
@@ -7,6 +7,7 @@
<field name="subject">Your reward coupon from ${object.program_id.company_id.name} </field>
<field name="email_from">${object.program_id.company_id.email | safe}</field>
<field name="partner_to">${object.order_id.partner_id.id or object.partner_id.id}</field>
+ <field name="lang">${object.partner_id.lang}</field>
<field name="body_html" type="html">
<table border="0" cellpadding="0" cellspacing="0" style="width:100%; margin:0px auto;"><tbody>
<tr><td valign="top" style="text-align: center; font-size: 14px;">