[FIX] mail: test 'id not in record_list'

bzr revid: rco@openerp.com-20130221142249-a8go4wtcbi6v1ymb
This commit is contained in:
Raphael Collet 2013-02-21 15:22:49 +01:00
parent 3c0ba99dff
commit 55d652e778
1 changed files with 1 additions and 1 deletions

View File

@ -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