diff --git a/document_page_reference/models/document_page.py b/document_page_reference/models/document_page.py index f75fa666..ad11db09 100644 --- a/document_page_reference/models/document_page.py +++ b/document_page_reference/models/document_page.py @@ -49,7 +49,10 @@ class DocumentPage(models.Model): reference = fields.Char( help="Used to find the document, it can contain letters, numbers and _" ) - content_parsed = fields.Html(compute='_compute_content_parsed') + # Do not set this field as HTML or it will be sanitized in + # `convert_to_cache` in `odoo/odoo/fields.py` and iframe tags will + # be removed + content_parsed = fields.Text(compute='_compute_content_parsed') @api.depends('history_head') def _compute_content_parsed(self):