From 156ba71747f0c41c86c7bfbc7ce11c82b7175f55 Mon Sep 17 00:00:00 2001 From: flvr-odoo Date: Thu, 9 Mar 2023 12:35:36 +0000 Subject: [PATCH] [FIX] survey: format description properly This commit addresses a bug where the "description" field on the user screen was not displaying properly. This fixes the formatting issue, ensuring that the field is now properly displayed with appropriate line breaks and spacing. Users can now view their description information as intended. closes odoo/odoo#114881 X-original-commit: 52858350a78856e7da444617dc2779a2f19688a0 Signed-off-by: Vranckx Florian (flvr) Signed-off-by: Romain Derie (rde) --- 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 54113a60fc7..da6375a2f60 100644 --- a/addons/survey/models/survey_survey.py +++ b/addons/survey/models/survey_survey.py @@ -58,7 +58,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, sanitize=False, # TDE FIXME: find a way to authorize videos + "Description", translate=True, sanitize=True, sanitize_overridable=True, 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,