From 28e1b3af736162d05988c743e97fd80d1d8e4f14 Mon Sep 17 00:00:00 2001
From: flvr-odoo <flvr@odoo.com>
Date: Fri, 21 Apr 2023 12:26:42 +0000
Subject: [PATCH] [FIX] website_forum: adapt fieds to new sanitize api of 16.0

Adapting the field faq to the new sanitize api of 16.0

closes odoo/odoo#119369

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
---
 addons/website_forum/models/forum.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/addons/website_forum/models/forum.py b/addons/website_forum/models/forum.py
index b48eb46f8601..fb8650a0a550 100644
--- a/addons/website_forum/models/forum.py
+++ b/addons/website_forum/models/forum.py
@@ -45,7 +45,7 @@ class Forum(models.Model):
     authorized_group_id = fields.Many2one('res.groups', 'Authorized Group')
     menu_id = fields.Many2one('website.menu', 'Menu', copy=False)
     active = fields.Boolean(default=True)
-    faq = fields.Html('Guidelines', translate=html_translate, sanitize=False)
+    faq = fields.Html('Guidelines', translate=html_translate, sanitize=True, sanitize_overridable=True)
     description = fields.Text('Description', translate=True)
     teaser = fields.Text('Teaser', compute='_compute_teaser', store=True)
     welcome_message = fields.Html(
-- 
GitLab