[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:
Thibault Delavallée 2012-06-07 17:16:39 +02:00
parent 484cf746a5
commit 6a8330b959
1 changed files with 1 additions and 1 deletions

View File

@ -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')