diff options
| author | fja-odoo <fja@odoo.com> | 2020-03-31 14:04:15 +0000 |
|---|---|---|
| committer | fja-odoo <fja@odoo.com> | 2020-03-31 14:22:43 +0000 |
| commit | 388c222c6c4bb7e2fe3e67009b248359ae0fd3db (patch) | |
| tree | 0759af6f5fcda3ebddee5a96ea73a9c666ebdf04 /addons/website_slides/models/slide_slide.py | |
| parent | 0d52f9c379e6b837bbcfc121cda40d1ecc3599e8 (diff) | |
[IMP] base, *: allow html fields not to sanitize forms
* = event, website_event_track, website_sale, website_hr_recruitment,
website_livechat, website_sale, website_slides
The option to sanitize or not the forms was not available, this will
allow better flexibility on whether forms should be sanitized or not on
an HTML field.
Also we use this new param to allow forms to be added on some already
existing html fields where forms where sanitized out.
task-2209554
closes odoo/odoo#47318
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website_slides/models/slide_slide.py')
| -rw-r--r-- | addons/website_slides/models/slide_slide.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_slides/models/slide_slide.py b/addons/website_slides/models/slide_slide.py index c3bf14af5a2..b99a3723963 100644 --- a/addons/website_slides/models/slide_slide.py +++ b/addons/website_slides/models/slide_slide.py @@ -172,7 +172,7 @@ class Slide(models.Model): slide_resource_ids = fields.One2many('slide.slide.resource', 'slide_id', string="Additional Resource for this slide") slide_resource_downloadable = fields.Boolean('Allow Download', default=False, help="Allow the user to download the content of the slide.") mime_type = fields.Char('Mime-type') - html_content = fields.Html("HTML Content", help="Custom HTML content for slides of type 'Web Page'.", translate=True) + html_content = fields.Html("HTML Content", help="Custom HTML content for slides of type 'Web Page'.", translate=True, sanitize_form=False) # website website_id = fields.Many2one(related='channel_id.website_id', readonly=True) date_published = fields.Datetime('Publish Date', readonly=True, tracking=True) |
