From 65c3be37fd284f42855e42b14953ebd9e6d9e6e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 12 Sep 2019 15:22:08 +0000 Subject: [PATCH] [FIX] survey: set email_from on certification mail template Otherwise public users cannot receive their certification. Indeed email_from will be the one of public user which is probably not set. Task 2067872 (eLearning internal testing) Task 2058598 (survey internal testing) PR #36756 --- addons/survey/data/mail_template_data.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/survey/data/mail_template_data.xml b/addons/survey/data/mail_template_data.xml index 42ed3ee42f3..96506fb928a 100644 --- a/addons/survey/data/mail_template_data.xml +++ b/addons/survey/data/mail_template_data.xml @@ -2,7 +2,7 @@ - Survey: Send by email + Survey: Invite Participate to ${object.survey_id.title} survey ${(object.partner_id.email_formatted or object.email) |safe} @@ -39,9 +39,10 @@ - Certification: Send by email + Survey: Send certification by email Certification: ${object.survey_id.display_name} + ${(object.survey_id.create_uid.email_formatted or user.email_formatted or user.company_id.catchall) |safe} ${(object.partner_id.email_formatted or object.email) |safe}