From 634a68a0ffa05ebdadf304104ceb712f706147bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 13 Aug 2012 21:50:23 +0200 Subject: [PATCH] [FIX] mail_thread: protection for needaction_user_ids: check if has the method. bzr revid: tde@openerp.com-20120813195023-jv4pi1ct6tj30n4r --- addons/mail/mail_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index f448ddd6df8..b5e4f2fa4bc 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -189,7 +189,7 @@ class mail_thread(osv.Model): notif_user_ids += self.message_parse_users(cr, uid, body, context=context) # add users requested to perform an action (need_action mechanism) - if self._columns.get('user_id'): + if hasattr(self, get_needaction_user_ids) and self._columns.get('user_id'): user_ids_dict = self.get_needaction_user_ids(cr, uid, thread_ids, context=context) for id, user_ids in user_ids_dict.iteritems(): notif_user_ids += user_ids