From e3c7ae7e1d5ab2cde213300f7f5550d9826abdf0 Mon Sep 17 00:00:00 2001 From: "vta vta@openerp.com" <> Date: Wed, 5 Dec 2012 08:35:18 +0100 Subject: [PATCH] [FIX] Pop the correct field in context. bzr revid: vta@openerp.com-20121205073518-aokkreu26zdr03cc --- addons/mail/wizard/invite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/wizard/invite.py b/addons/mail/wizard/invite.py index cd7e8b8c317..e9335a7d983 100644 --- a/addons/mail/wizard/invite.py +++ b/addons/mail/wizard/invite.py @@ -74,7 +74,7 @@ class invite_wizard(osv.osv_memory): # the invite wizard should create a private message not related to any object, # we ensure that by removing default res_id and res_model from the context context.pop('default_res_id', False) - context.pop('default_res_model', False) + context.pop('default_model', False) for follower_id in new_follower_ids: mail_mail = self.pool.get('mail.mail') mail_id = mail_mail.create(cr, uid, {