diff options
| author | Raphael Collet <rco@openerp.com> | 2013-02-21 15:22:49 +0100 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2013-02-21 15:22:49 +0100 |
| commit | 55d652e77832d2c61c0a99a5a723faad10b401a4 (patch) | |
| tree | 3834cf88193de56c9ff2fa2e7cd1bd519fa89850 | |
| parent | 3c0ba99dff91221f5bc973524da0f28053667256 (diff) | |
[FIX] mail: test 'id not in record_list'
bzr revid: rco@openerp.com-20130221142249-a8go4wtcbi6v1ymb
| -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 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 |
