[FIX] mail.thread: propagated field name change in res.users (notification_email_pref)

bzr revid: tde@openerp.com-20120404091218-acv156wvuu1g2hrv
This commit is contained in:
Thibault Delavallée
2012-04-04 11:12:18 +02:00
parent c3ff3c8330
commit bfe7882e2f
+1 -1
View File
@@ -146,7 +146,7 @@ class mail_thread(osv.osv):
if not vals.get('email_to', False):
email_to = ''
for user in res_users_obj.browse(cr, uid, user_to_push_ids, context=context):
if not user.message_email_pref == 'all' and not (user.message_email_pref == 'comments' and vals['type'] == 'comment'):
if not user.notification_email_pref == 'all' and not (user.notification_email_pref == 'comments' and vals['type'] == 'comment'):
continue
if not user.user_email:
continue