[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
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user