From bfe7882e2fd2295770a3f38f03a6fb41133bea58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 4 Apr 2012 11:12:18 +0200 Subject: [PATCH] [FIX] mail.thread: propagated field name change in res.users (notification_email_pref) bzr revid: tde@openerp.com-20120404091218-acv156wvuu1g2hrv --- addons/mail/mail_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 119e687056f..1134571d9e8 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -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