[FIX] survey: adapt to new feature in 16.

Version 16 has new description for field. This commit adapts the field definition to that new API.

OPW - 3258716

closes odoo/odoo#118488

X-original-commit: af099eadfae9d5018ff1094208ca1c1d640af17f
Signed-off-by: Vranckx Florian (flvr) <flvr@odoo.com>
Signed-off-by: Antoine Boonen (aboo) <aboo@odoo.com>
This commit is contained in:
Antoine Boonen (aboo)
2023-04-14 10:44:58 +02:00
parent 585abd4847
commit 938c47a76e
+1 -1
View File
@@ -49,7 +49,7 @@ class SurveyQuestion(models.Model):
# question generic data
title = fields.Char('Title', required=True, translate=True)
description = fields.Html(
'Description', translate=True, sanitize=False, # TDE TODO: sanitize but find a way to keep youtube iframe media stuff
'Description', translate=True, sanitize=True, sanitize_overridable=True,
help="Use this field to add additional explanations about your question or to illustrate it with pictures or a video")
question_placeholder = fields.Char("Placeholder", translate=True, compute="_compute_question_placeholder", store=True, readonly=False)
background_image = fields.Image("Background Image", compute="_compute_background_image", store=True, readonly=False)