From ac07e4a497bb77d15e673e4ea502d346a76d7219 Mon Sep 17 00:00:00 2001 From: dasz Date: Tue, 18 Apr 2023 14:23:54 +0000 Subject: [PATCH] [IMP] survey: send recruitment interview directly send interview mail directly, instead of putting in the cron queue closes odoo/odoo#115800 Task: 3216342 Signed-off-by: Kevin Baptiste --- addons/hr_recruitment_survey/wizard/survey_invite.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/hr_recruitment_survey/wizard/survey_invite.py b/addons/hr_recruitment_survey/wizard/survey_invite.py index d55fe391a02..6d01cc484d5 100644 --- a/addons/hr_recruitment_survey/wizard/survey_invite.py +++ b/addons/hr_recruitment_survey/wizard/survey_invite.py @@ -21,7 +21,8 @@ class SurveyInvite(models.TransientModel): def _send_mail(self, answer): mail = super()._send_mail(answer) if answer.applicant_id: - answer.applicant_id.message_post(body=mail.body_html) + answer.applicant_id.message_post(body=Markup(mail.body_html)) + mail.send() return mail def action_invite(self):