From 68d1041d648a83ffe8c8a20aee6119a977a8bee0 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 18 Oct 2012 10:54:24 +0200 Subject: [PATCH] [FIX] mail: fix the notify followers bzr revid: chm@openerp.com-20121018085424-hfspxqcpo2p5ya6t --- addons/mail/mail_message.py | 4 +--- addons/mail/mail_message_view.xml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/addons/mail/mail_message.py b/addons/mail/mail_message.py index f8d1f6d1e6c..bd8f5abcc1d 100644 --- a/addons/mail/mail_message.py +++ b/addons/mail/mail_message.py @@ -581,9 +581,7 @@ class mail_message(osv.Model): Call mail_notification.notify to manage the email sending """ message = self.browse(cr, uid, newid, context=context) - - if not message: - self._notify_followers(cr, uid, newid, message, context=context) + self._notify_followers(cr, uid, newid, message, context=context) # add myself if I wrote on my wall, # unless remove myself author diff --git a/addons/mail/mail_message_view.xml b/addons/mail/mail_message_view.xml index d59eb800261..e0a8ea8f9a1 100644 --- a/addons/mail/mail_message_view.xml +++ b/addons/mail/mail_message_view.xml @@ -59,7 +59,7 @@ + domain="[('read', '=', False)]"/>