From e0553b20d2bfdb1e934657cdc84fe840821cfd43 Mon Sep 17 00:00:00 2001 From: "Nasreddin (bon)" Date: Tue, 21 Apr 2020 13:46:23 +0000 Subject: [PATCH] [FIX] project: Fix customer salutation in rating email If there isn't any customer set on the task, the current behavior will display 'Hello False,' in salutation rating email as intro. This commit will fix it by display only 'Hello,' if there isn't any customer set. Task ID 2238816 closes odoo/odoo#50366 X-original-commit: e7b71c6e497aa8d823181440333f371f1da5ade8 Signed-off-by: Yannick Tivisse (yti) --- addons/project/data/project_mail_template_data.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/project/data/project_mail_template_data.xml b/addons/project/data/project_mail_template_data.xml index d6cd9e4ce4b..bc96d795102 100644 --- a/addons/project/data/project_mail_template_data.xml +++ b/addons/project/data/project_mail_template_data.xml @@ -38,7 +38,11 @@
- Hello ${partner.name},

+ % if partner.name: + Hello ${partner.name},

+ % else: + Hello,

+ % endif Please take a moment to rate our services related to the task "${object.name}" % if object.rating_get_rated_partner_id().name: assigned to ${object.rating_get_rated_partner_id().name}.