[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 <kba@odoo.com>
This commit is contained in:
dasz
2023-05-09 11:57:09 +02:00
parent 6c65c1de6e
commit ac07e4a497
@@ -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):