Skip to content

Commit

Permalink
[IMP] base_ux: add markupsafe for user in server actions code.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomacr committed Jul 12, 2022
1 parent 3d01b9d commit 4a7fc60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base_ux/models/ir_actions_server.py
Expand Up @@ -2,6 +2,7 @@
from odoo.tools import html2plaintext
from odoo.tools.safe_eval import wrap_module


class IrActionsServer(models.Model):

_inherit = 'ir.actions.server'
Expand All @@ -15,5 +16,6 @@ def _get_eval_context(self, action=None):
eval_context.update({
're': self.re,
'html2plaintext': html2plaintext,
'markupsafe': wrap_module(__import__('markupsafe'), ['Markup']),
})
return eval_context

0 comments on commit 4a7fc60

Please sign in to comment.