diff options
| author | Christophe Matthieu <chm@openerp.com> | 2013-03-05 11:26:44 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2013-03-05 11:26:44 +0100 |
| commit | a6f2191dc6f3802dd667dbd361ced9be1d2a2e99 (patch) | |
| tree | 33e262f23e31b4108e7ade932195a9495461c58e /addons/mail | |
| parent | a57c0797000266d9488e855d59150b245a1bb361 (diff) | |
[FIX] mail_followers: invite tests
bzr revid: chm@openerp.com-20130305102644-3goqo24diirjoq0z
Diffstat (limited to 'addons/mail')
| -rw-r--r-- | addons/mail/wizard/invite.py | 2 |
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 |
