From be5ccc7805120a37d029de3f6bffbe73e673bfc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Wed, 6 Mar 2013 15:31:25 +0100 Subject: [PATCH] [REM] mail: removed opt-out management. bzr revid: tde@openerp.com-20130306143125-4p4zretkzjpv0jn8 --- addons/mail/mail_followers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/mail/mail_followers.py b/addons/mail/mail_followers.py index 750b06bf595..a065a70be56 100644 --- a/addons/mail/mail_followers.py +++ b/addons/mail/mail_followers.py @@ -80,7 +80,6 @@ class mail_notification(osv.Model): :param browse_record message: mail.message to notify """ - has_opt_out = self.pool.get('res.partner')._all_columns.get('opt_out') notify_pids = [] for notification in message.notification_ids: if notification.read: @@ -93,7 +92,7 @@ class mail_notification(osv.Model): if not partner.email: continue # Partner does not want to receive any emails or is opt-out - if partner.notification_email_send == 'none' or (has_opt_out and partner.opt_out): + if partner.notification_email_send == 'none': continue # Partner wants to receive only emails and comments if partner.notification_email_send == 'comment' and message.type not in ('email', 'comment'):