From 55d652e77832d2c61c0a99a5a723faad10b401a4 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Thu, 21 Feb 2013 15:22:49 +0100 Subject: [PATCH] [FIX] mail: test 'id not in record_list' bzr revid: rco@openerp.com-20130221142249-a8go4wtcbi6v1ymb --- 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 5fddd574182..72678d468ff 100644 --- a/addons/mail/wizard/invite.py +++ b/addons/mail/wizard/invite.py @@ -56,7 +56,7 @@ class invite_wizard(osv.osv_memory): document = model_obj.browse(cr, uid, wizard.res_id, context=context) # filter partner_ids to get the new followers, to avoid sending email to already following partners - new_follower_ids = [p.id for p in wizard.partner_ids if p.id not in document.message_follower_ids] + new_follower_ids = [p.id for p in wizard.partner_ids if p not in document.message_follower_ids] model_obj.message_subscribe(cr, uid, [wizard.res_id], new_follower_ids, context=context) # send an email