From d8a3d76b25053b271e60d2fef4b9a0221468ef6a Mon Sep 17 00:00:00 2001 From: "Mahdi Cheikh Rouhou (macr)" Date: Tue, 9 May 2023 12:50:32 +0000 Subject: [PATCH] [FIX] loyalty : send email in partner language When sending email with gift card, it will have the user langauge and not the partner language Steps to reproduce the error : 1- Add french and english language 2- Make the current language english 3- Install contact and sales and activate gift cards 4- create a contact having french language 5- create a gift card for the french partner and send it to him 6- the email will be in english lang The origin of the problem was the missing lang field in the template opw-3308919 closes odoo/odoo#121086 X-original-commit: f09ac453aa7cffe1e31f30b68fa0665ef504283a Signed-off-by: Nicolas Lempereur (nle) Signed-off-by: Mahdi Cheikh Rouhou (macr) --- addons/loyalty/data/mail_template_data.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/loyalty/data/mail_template_data.xml b/addons/loyalty/data/mail_template_data.xml index bba70470e01..d160733981c 100644 --- a/addons/loyalty/data/mail_template_data.xml +++ b/addons/loyalty/data/mail_template_data.xml @@ -5,6 +5,7 @@ Your Gift Card at {{ object.company_id.name }} {{ object._get_mail_partner().id }} + {{ object._get_mail_partner().lang }} Sent to customer who purchased a gift card