diff --git a/addons/mail/mail_message.py b/addons/mail/mail_message.py index fbd04f21acc..ed288de1753 100644 --- a/addons/mail/mail_message.py +++ b/addons/mail/mail_message.py @@ -848,7 +848,7 @@ class mail_message(osv.Model): Call mail_notification.notify to manage the email sending """ notification_obj = self.pool.get('mail.notification') - message = self.browse(cr, uid, newid, context=context) + message = self.browse(cr, SUPERUSER_ID, newid, context=context) partners_to_notify = set([]) # all followers of the mail.message document have to be added as partners and notified if a subtype is defined (otherwise: log message) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index ee4eafc3edd..baef24003a4 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -1861,7 +1861,7 @@ class mail_thread(osv.AbstractModel): if msg_ids: notification_obj = self.pool.get('mail.notification') notification_obj._notify(cr, uid, msg_ids[0], partners_to_notify=partner_ids, context=context) - message = message_obj.browse(cr, uid, msg_ids[0], context=context) + message = message_obj.browse(cr, SUPERUSER_ID, msg_ids[0], context=context) if message.parent_id: partner_ids_to_parent_notify = set(partner_ids).difference(partner.id for partner in message.parent_id.notified_partner_ids) for partner_id in partner_ids_to_parent_notify: