From 27fb535d9be9f573aeacb729acd5cc4618b7b7a1 Mon Sep 17 00:00:00 2001 From: "Jordan D. (Joda)" Date: Mon, 6 Feb 2023 10:31:59 +0000 Subject: [PATCH] [FIX] gamification: fix wrong condition in template How to reproduce ================= Give a badge to an employee, when checking the sent mail, The image and description of the badge is nowhere to be seens. Those fields don't display because the description contains P html tags. The presence of the removed `t-if` is the main cause of the issue. Adding a `not` to the condition solves the issue. This not was lost during the Jinja -> Qweb translation (commit 68182ba) opw-3099419 closes odoo/odoo#114259 X-original-commit: c90add64f91667d5c9f2294029aa674b19981278 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 849140de10c..4c812ee5df2 100644 --- a/addons/gamification/data/mail_template_data.xml +++ b/addons/gamification/data/mail_template_data.xml @@ -35,7 +35,7 @@
Congratulations !
You just received badge !
- +
diff --git a/addons/gamification/i18n/gamification.pot b/addons/gamification/i18n/gamification.pot index 47d41e01301..f1c71ee9885 100644 --- a/addons/gamification/i18n/gamification.pot +++ b/addons/gamification/i18n/gamification.pot @@ -190,7 +190,7 @@ msgid "" "
\n" " Congratulations !
\n" " You just received badge !
\n" -" \n" +"
\n" " \n" "
\n" " \n"