From 8e8a5b1aae89c6e1874b63c5e3d103e388997bfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 26 Mar 2012 14:27:12 +0200 Subject: [PATCH] [FIX] Fixed last fix. bzr revid: tde@openerp.com-20120326122712-5f83n3j6z727uq5i --- addons/mail/mail_thread.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index b3b7666be85..57ddd3cac5b 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -148,10 +148,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_ids - if hasattr(self, 'needaction_get_records_user_ids'): - user_to_push_ids += self.needaction_get_records_user_ids(cr, uid, [thread_id], context=context) - else: - user_to_push_ids = [] + if hasattr(self, 'get_needaction_user_ids'): + user_to_push_ids += self.get_needaction_user_ids(cr, uid, [thread_id], context=context)[thread_id] # remove duplicate entries user_to_push_ids = list(set(user_to_push_ids)) # effectively push message to users