From e05b2d01d125051b6ef18fd7c5277e77bc3fd150 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Thu, 5 Apr 2018 12:11:56 +0200 Subject: [PATCH] [FIX] hr_recruitment: email from in template should be safe Create a hr.attendant in a stage where a mail template is present. Fill the email field as: Name Surname Before this commit: - the created partner's email has been rendered as name@surname.com> - the email failed to be sended because of this This was because Jinja rendered that snippet escaping the special characters Putting a 'pipe' safe in the snippet does the trick After this commit: both the partner and the email are created successfuly OPW 1830739 closes #24059 --- addons/hr_recruitment/data/hr_recruitment_data.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/hr_recruitment/data/hr_recruitment_data.xml b/addons/hr_recruitment/data/hr_recruitment_data.xml index faf6c6b897c..f2141e20a32 100644 --- a/addons/hr_recruitment/data/hr_recruitment_data.xml +++ b/addons/hr_recruitment/data/hr_recruitment_data.xml @@ -21,7 +21,7 @@ Applicant: Refuse Application refused - ${object.email_from} + ${object.email_from | safe} ${object.partner_id and object.partner_id.id or ''} ${object.partner_id and object.partner_id.lang or ''} @@ -37,7 +37,7 @@ Unfortunately, your profile does not match with our needs

Applicant: Interest Application approved - ${object.email_from} + ${object.email_from | safe} ${object.partner_id and object.partner_id.id or ''} ${object.partner_id and object.partner_id.lang or ''}