[IMP]base_comment_template: using markup.safe to render html in report

pull/833/head
matteo.tognini 2023-12-20 16:46:12 +01:00
parent 9eebfa1e38
commit 02a869d789
1 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,8 @@
# Copyright 2020 NextERP Romania SRL
# Copyright 2021-2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import markupsafe
from odoo import api, fields, models
from odoo.osv import expression
from odoo.tools.safe_eval import safe_eval
@ -61,4 +63,4 @@ class CommentTemplate(models.AbstractModel):
add_context=add_context,
post_process=post_process,
)
return comment_texts[self.id] or ""
return markupsafe.Markup(comment_texts[self.id]) or ""