diff options
Diffstat (limited to 'addons/gamification/models/challenge.py')
| -rw-r--r-- | addons/gamification/models/challenge.py | 2 |
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) |
