From 3e5f84cff393ecd762d070dd77a765d61caa5f9f Mon Sep 17 00:00:00 2001 From: Patrick Hoste Date: Thu, 19 Jan 2023 14:53:15 +0000 Subject: [PATCH] [IMP] website_slides: add sanitize_overridable to html_content field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- addons/website_slides/models/slide_slide.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/website_slides/models/slide_slide.py b/addons/website_slides/models/slide_slide.py index 7c5435dc966..40fa17afa5f 100644 --- a/addons/website_slides/models/slide_slide.py +++ b/addons/website_slides/models/slide_slide.py @@ -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,