summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2013-03-05 11:26:44 +0100
committerChristophe Matthieu <chm@openerp.com>2013-03-05 11:26:44 +0100
commita6f2191dc6f3802dd667dbd361ced9be1d2a2e99 (patch)
tree33e262f23e31b4108e7ade932195a9495461c58e
parenta57c0797000266d9488e855d59150b245a1bb361 (diff)
[FIX] mail_followers: invite tests
bzr revid: chm@openerp.com-20130305102644-3goqo24diirjoq0z
-rw-r--r--addons/mail/wizard/invite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/wizard/invite.py b/addons/mail/wizard/invite.py
index 04151c7df5f..b8e44983a57 100644
--- a/addons/mail/wizard/invite.py
+++ b/addons/mail/wizard/invite.py
@@ -66,7 +66,7 @@ class invite_wizard(osv.osv_memory):
model_obj.message_subscribe(cr, uid, [wizard.res_id], new_follower_ids, context=context)
ir_model = self.pool.get('ir.model')
- model_ids = ir_model.search(cr, uid, [('model', '=', self.pool.get(result.get('res_model'))._name)], context=context)
+ model_ids = ir_model.search(cr, uid, [('model', '=', model_obj._name)], context=context)
model_name = ir_model.name_get(cr, uid, model_ids, context=context)[0][1]
# send an email