From d4a828fe734d35a19d42c9af1875bf34d0f7fcd7 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 28 Feb 2013 10:42:00 +0100 Subject: [PATCH] [FIX] gamification: send reminder messages correctly bzr revid: mat@openerp.com-20130228094200-a74z0hfwe8kdxymm --- addons/gamification/goal.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/gamification/goal.py b/addons/gamification/goal.py index 5acee02c448..b7e045d9894 100644 --- a/addons/gamification/goal.py +++ b/addons/gamification/goal.py @@ -265,11 +265,11 @@ class gamification_goal(osv.Model): # generate a remind report body_html = mako_template_env.get_template('reminder.mako').render({'object':goal}) - self.pool.get('mail.thread').message_post(cr, uid, False, + self.message_post(cr, uid, goal.id, body=body_html, partner_ids=[goal.user_id.partner_id.id], - context=context) - #self.pool.get('email.template').send_mail(cr, uid, template_id, goal.id, context=context) + context=context, + subtype='mail.mt_comment') else: # count or sum obj = self.pool.get(goal.type_id.model_id.model)