[IMP] ir_needaction: cleaned get_needaction_user_ids implementation: now returns a distinct set for each id, and not a reference to a shared void list.
bzr revid: tde@openerp.com-20120607151639-xiiwektb0qp10xs7
This commit is contained in:
parent
484cf746a5
commit
6a8330b959
|
@ -146,7 +146,7 @@ class ir_needaction_mixin(osv.osv):
|
|||
""" Returns the user_ids that have to perform an action
|
||||
:return: dict { record_id: [user_ids], }
|
||||
"""
|
||||
return dict.fromkeys(ids, [])
|
||||
return dict((id,set()) for id in ids)
|
||||
|
||||
def create(self, cr, uid, values, context=None):
|
||||
rel_obj = self.pool.get('ir.needaction_users_rel')
|
||||
|
|
Loading…
Reference in New Issue