mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-21 11:37:26 -06:00
[FIX] Don't set content_parsed
an HTML field or it will be sanitized
This commit is contained in:
parent
90d6ea742a
commit
33231e07f5
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user