summaryrefslogtreecommitdiff
path: root/addons/gamification/models/challenge.py
diff options
context:
space:
mode:
authorRaphael Collet <rco@odoo.com>2019-06-17 09:45:09 +0000
committerRaphael Collet <rco@odoo.com>2019-07-04 11:32:22 +0000
commitb7fd679a6c41dbb694c6fb2ce4911798de0424b1 (patch)
treecb4e75910deb2516d5397925e96ab5e680eed9e1 /addons/gamification/models/challenge.py
parent1e6c3bec2c5ca621344b09e58dbed535e80fb343 (diff)
[FIX] *: sudo() -> with_user()
Diffstat (limited to 'addons/gamification/models/challenge.py')
-rw-r--r--addons/gamification/models/challenge.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/gamification/models/challenge.py b/addons/gamification/models/challenge.py
index 5e2515e797c..503ec655c5c 100644
--- a/addons/gamification/models/challenge.py
+++ b/addons/gamification/models/challenge.py
@@ -581,7 +581,7 @@ class Challenge(models.Model):
if not lines:
continue
- body_html = MailTemplates.sudo(user).with_context(challenge_lines=lines)._render_template(
+ body_html = MailTemplates.with_user(user).with_context(challenge_lines=lines)._render_template(
challenge.report_template_id.body_html,
'gamification.challenge',
challenge.id)