[FIX] mail: email notifications: send emails to the author if he asked to be notified of its own message using the explicit recipients field of mail.message. Email sending falls back on the regular mode that depends on the preferences field.

bzr revid: tde@openerp.com-20130130123921-4ly0yh0zyk6gf0og
This commit is contained in:
Thibault Delavallée
2013-01-30 13:39:21 +01:00
-3
View File
@@ -85,9 +85,6 @@ class mail_notification(osv.Model):
if notification.read:
continue
partner = notification.partner_id
# Do not send an email to the writer
if partner.user_ids and partner.user_ids[0].id == uid:
continue
# Do not send to partners without email address defined
if not partner.email:
continue