[REM] mail: removed opt-out management.

bzr revid: tde@openerp.com-20130306143125-4p4zretkzjpv0jn8
This commit is contained in:
Thibault Delavallée 2013-03-06 15:31:25 +01:00
parent f8481a83d0
commit be5ccc7805
1 changed files with 1 additions and 2 deletions

View File

@ -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'):