[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) <flvr@odoo.com>
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
flvr-odoo
2023-03-10 13:32:50 +01:00
committed by Romain Derie
parent 5a3a566034
commit 156ba71747
+1 -1
View File
@@ -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,