From b4ac232aecc390b10faab71c9d969b8c5bf76890 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 29 Jan 2020 13:40:37 +0000 Subject: [PATCH] [IMP] survey: do not sanitize survey description As access to survey description field is limited to survey users and managers we can let them put whatever they want in the description field. Otherwise they cannot use the full power of web editor, notably embedded videos. PR #44205 --- addons/survey/models/survey_survey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/survey/models/survey_survey.py b/addons/survey/models/survey_survey.py index 6c6d36168a8..6af65c35f6b 100644 --- a/addons/survey/models/survey_survey.py +++ b/addons/survey/models/survey_survey.py @@ -25,7 +25,7 @@ class Survey(models.Model): title = fields.Char('Survey Title', required=True, translate=True) color = fields.Integer('Color Index', default=0) description = fields.Html( - "Description", translate=True, + "Description", translate=True, sanitize=False, # TDE FIXME: find a way to authorize videos help="The description will be displayed on the home page of the survey. You can use this to give the purpose and guidelines to your candidates before they start it.") description_done = fields.Html( "End Message", translate=True,