diff options
| author | Adrien Widart <awt@odoo.com> | 2021-05-25 14:35:33 +0000 |
|---|---|---|
| committer | Adrien Widart <awt@odoo.com> | 2021-05-28 07:09:13 +0000 |
| commit | 37cea376cc2069388b07b91f50caa6044fa6c932 (patch) | |
| tree | e995b571d1eba75a68b104ca85c30c61ea1af38f /addons/survey/wizard/survey_invite.py | |
| parent | 68182733f8a625a13e44c6be2708a98ece20d80a (diff) | |
[FIX] survey: Unescape characters in mail subject
To reproduce the error:
Create a survey (title must contain ") and send it
Error:
The mail subject is incorrect: the character " is replaced with "
OPW-2536206
closes odoo/odoo#71363
X-original-commit: a2d46c2d1a64c5006d6a7d9ddf5a08a48e5452b9
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
Diffstat (limited to 'addons/survey/wizard/survey_invite.py')
| -rw-r--r-- | addons/survey/wizard/survey_invite.py | 2 |
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 = { |
