[IMP] website_slides: add sanitize_overridable to html_content field

Following this PR odoo/odoo#97398 website_slides module was forgotten
This commit add 'sanitize_overridable' parameter to the html_content
field. This will allow one to use the embed snippet in an article
type slide.

Task-3134690

closes odoo/odoo#112534

X-original-commit: 627833e77eb8f7ef7850f1fdeeb115ee8870c7f9
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
This commit is contained in:
Patrick Hoste
2023-02-13 16:20:56 +01:00
parent c9e26ac79a
commit 3e5f84cff3
+4 -1
View File
@@ -171,7 +171,10 @@ class Slide(models.Model):
# google
google_drive_id = fields.Char('Google Drive ID of the external URL', compute='_compute_google_drive_id')
# content - webpage
html_content = fields.Html("HTML Content", help="Custom HTML content for slides of category 'Article'.", translate=True, sanitize_attributes=False, sanitize_form=False)
html_content = fields.Html(
"HTML Content", translate=True,
sanitize_attributes=False, sanitize_form=False, sanitize_overridable=True,
help="Custom HTML content for slides of category 'Article'.")
# content - images
image_binary_content = fields.Binary('Image Content', related='binary_content', readonly=False) # Used to filter file input to images only
image_google_url = fields.Char('Image Link', related='url', readonly=False,