summaryrefslogtreecommitdiff
path: root/addons/survey/wizard/survey_invite.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/survey/wizard/survey_invite.py')
-rw-r--r--addons/survey/wizard/survey_invite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/survey/wizard/survey_invite.py b/addons/survey/wizard/survey_invite.py
index 8543587e519..4ad35dbe4cd 100644
--- a/addons/survey/wizard/survey_invite.py
+++ b/addons/survey/wizard/survey_invite.py
@@ -209,7 +209,7 @@ class SurveyInvite(models.TransientModel):
def _send_mail(self, answer):
""" Create mail specific for recipient containing notably its access token """
- subject = self.env['mail.render.mixin']._render_template(self.subject, 'survey.user_input', answer.ids, post_process=True)[answer.id]
+ subject = self.env['mail.render.mixin'].with_context(safe=True)._render_template(self.subject, 'survey.user_input', answer.ids, post_process=True)[answer.id]
body = self.env['mail.render.mixin']._render_template(self.body, 'survey.user_input', answer.ids, post_process=True)[answer.id]
# post the message
mail_values = {