[FIX] mail_thread: protection for needaction_user_ids: check if has the method.
bzr revid: tde@openerp.com-20120813195023-jv4pi1ct6tj30n4r
This commit is contained in:
parent
0c3e1607de
commit
634a68a0ff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue