[FIX] mail_thread: fixed reference to a deleted variable.

bzr revid: tde@openerp.com-20120815201954-z0jf0qwp8orr76vn
This commit is contained in:
Thibault Delavallée 2012-08-15 22:19:54 +02:00
parent 39cc9217bf
commit ec23d716d4
1 changed files with 2 additions and 2 deletions

View File

@ -1064,8 +1064,8 @@ class mail_thread(osv.Model):
# try to find an email_to
email_to = ''
for user in res_users_obj.browse(cr, uid, user_to_notify_ids, context=context):
if not user.notification_email_pref == 'all' and \
not (user.notification_email_pref == 'to_me' and user.id in user_to_push_from_parse_ids):
# TO BE REFACTORED BY FP, JUSTE REMOVED TO_ME, NOT SURE WHAT S NEW BEHAVIOR
if not user.notification_email_pref == 'all':
continue
if not user.email:
continue