From d9cbb91ef36d8e2b2a164adc7a8cfeb8ce8a4605 Mon Sep 17 00:00:00 2001 From: Karan Bosamia Date: Mon, 16 May 2022 08:58:09 +0000 Subject: [PATCH] [FIX][gamification]: Validate mail template 'name' field not present in 'gamification.goal' model which causes error while rendering mail template such that object 'gamification.goal' has no attribute 'name' opw-2844136 closes odoo/odoo#92300 Closes: https://github.com/odoo/odoo/pull/91439 X-original-commit: 0a1970e218527440debb8c75fff2fa47de5e2677 Signed-off-by: Thibault Delavallee (tde) --- addons/gamification/data/mail_template_data.xml | 2 +- addons/gamification/i18n/gamification.pot | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/gamification/data/mail_template_data.xml b/addons/gamification/data/mail_template_data.xml index ca228da1174..9a57f483aad 100644 --- a/addons/gamification/data/mail_template_data.xml +++ b/addons/gamification/data/mail_template_data.xml @@ -105,7 +105,7 @@ {{ object.user_id.partner_id.id }}
- Reminder
+ Reminder
You have not updated your progress for the goal (currently reached at %) for at least days. Do not forget to do it.

Thank you, diff --git a/addons/gamification/i18n/gamification.pot b/addons/gamification/i18n/gamification.pot index fad0e695dd8..136ec07b3ec 100644 --- a/addons/gamification/i18n/gamification.pot +++ b/addons/gamification/i18n/gamification.pot @@ -110,7 +110,7 @@ msgstr "" #: model:mail.template,body_html:gamification.email_template_goal_reminder msgid "" "
\n" -" Reminder
\n" +" Reminder
\n" " You have not updated your progress for the goal (currently reached at %) for at least days. Do not forget to do it.\n" "

\n" " Thank you,\n"