diff options
| author | Thibault Delavallée <tde@odoo.com> | 2020-02-25 11:49:27 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-03-24 10:24:19 +0000 |
| commit | 822f468059c9702b0898016e7bfbaf036a2c4036 (patch) | |
| tree | 819a2fea2e95860120b5e556aaca3a326003ac2c /addons/digest/models | |
| parent | a03f6483d6be83a81eac6e8f667ce317c8007dbe (diff) | |
[MOV] mail: move rendering code to mail render mixin
We also have to update code calling directly the rendering itself. Indeed
some code bits does some rendering directly on jinja-enabled input and not
through templates. Those calls have to be updated accordingly.
LINKS
Task ID 1963529
Community PR odoo/odoo#32397
Diffstat (limited to 'addons/digest/models')
| -rw-r--r-- | addons/digest/models/digest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/digest/models/digest.py b/addons/digest/models/digest.py index 83a869361c6..8e5623f4dad 100644 --- a/addons/digest/models/digest.py +++ b/addons/digest/models/digest.py @@ -136,8 +136,8 @@ class Digest(models.Model): return False tip.user_ids += user body = tools.html_sanitize(tip.tip_description) - # FIXME: sanitize ? links , - tip_description = self.env['mail.template']._render_template(body, 'digest.tip', self.ids)[self.id] + # FIXME: sanitize ? links ? + tip_description = self.env['mail.render.mixin']._render_template(body, 'digest.tip', self.ids)[self.id] return tip_description def compute_kpis_actions(self, company, user): |
