Merge PR #267 into 12.0

Signed-off-by dreispt
This commit is contained in:
OCA-git-bot 2021-12-04 14:20:04 +00:00
commit 7faa02a7f0

View File

@ -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):