mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-21 11:37:26 -06:00
commit
7faa02a7f0
@ -49,7 +49,10 @@ class DocumentPage(models.Model):
|
|||||||
reference = fields.Char(
|
reference = fields.Char(
|
||||||
help="Used to find the document, it can contain letters, numbers and _"
|
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')
|
@api.depends('history_head')
|
||||||
def _compute_content_parsed(self):
|
def _compute_content_parsed(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user