From 32824f56b14e5512144e6ddb317c2b64ebaecf3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 5 Jun 2012 16:29:51 +0200 Subject: [PATCH] [FIX] Fixed a call to message_get_subscribers with wrong arguments; commented a data causing issues. bzr revid: tde@openerp.com-20120605142951-3losakhdwehnjt8v --- addons/mail/data/mail_group_data.xml | 2 ++ addons/mail/mail_thread.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/mail/data/mail_group_data.xml b/addons/mail/data/mail_group_data.xml index 97a1eb59cc4..6cb2bec6ab1 100644 --- a/addons/mail/data/mail_group_data.xml +++ b/addons/mail/data/mail_group_data.xml @@ -8,7 +8,9 @@ Sales + All Employees diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 31a13da785c..23370e63e9c 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -165,7 +165,7 @@ class mail_thread(osv.Model): body = new_msg_vals.get('body_html', '') if new_msg_vals.get('content_subtype') == 'html' else new_msg_vals.get('body_text', '') # get subscribers - user_sub_ids = self.message_get_subscribers(cr, uid, thread_ids, True, context=context) + user_sub_ids = self.message_get_subscribers(cr, uid, thread_ids, context=context) # get hiden subscriptions subscription_ids = subscription_obj.search(cr, uid, [('res_model', '=', self._name), ('res_id', 'in', thread_ids), ('user_id', 'in', user_sub_ids)], context=context)