From c2f5c4a1487f4dde383ca28e9c92209e3291beb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Thu, 15 Mar 2012 11:52:10 +0100 Subject: [PATCH] [FIX] Fixed res.needaction -> base.needaction, commented need_acion_user_id management in mail.thread because mechanism has change bzr revid: tde@openerp.com-20120315105210-g6lci5nb66lo3jdy --- addons/mail/mail_thread.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index 93785c81b9a..c6ac11731cd 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -61,7 +61,7 @@ class mail_thread(osv.osv): ''' _name = 'mail.thread' _description = 'Email Thread' - _inherit = ['res.needaction'] + _inherit = ['base.needaction'] def _get_message_ids(self, cr, uid, ids, name, arg, context=None): res = {} @@ -144,8 +144,8 @@ class mail_thread(osv.osv): # parse message to get requested users user_to_push_ids += self.message_parse_users(cr, uid, [msg_id], vals['body_text'], context=context) # push to need_action_user_id if set - if thread_obj.need_action_user_id and thread_obj.need_action_user_id.id not in user_to_push_ids: - user_to_push_ids.append(thread_obj.need_action_user_id.id) + #if thread_obj.need_action_user_id and thread_obj.need_action_user_id.id not in user_to_push_ids: + #user_to_push_ids.append(thread_obj.need_action_user_id.id) # effectively push message to users for id in user_to_push_ids: