[FIX] Fixed a call to message_get_subscribers with wrong arguments; commented a data causing issues.
bzr revid: tde@openerp.com-20120605142951-3losakhdwehnjt8v
This commit is contained in:
@@ -8,7 +8,9 @@
|
||||
</record>
|
||||
<record model="mail.group" id="group_sales">
|
||||
<field name="name">Sales</field>
|
||||
<!--
|
||||
<field name="models" eval="[(4, ref('crm.lead'))]"/>
|
||||
-->
|
||||
</record>
|
||||
<record model="mail.group" id="group_all_employees">
|
||||
<field name="name">All Employees</field>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user