[FIX] orm: needaction: Added missing local dict with some values in domain evaluation

bzr revid: tde@openerp.com-20120405110815-g9u7yr7gs5o8s28k
This commit is contained in:
Thibault Delavallée
2012-04-05 13:08:15 +02:00
parent a43b3de1da
commit d3f9e33222
+1 -1
View File
@@ -4887,7 +4887,7 @@ class BaseModel(object):
if not ids:
return (True, 0, [])
if domain:
new_domain = eval(domain) + [('id', 'in', ids)]
new_domain = eval(domain, locals_dict={'uid': user_id}) + [('id', 'in', ids)]
else:
new_domain = [('id', 'in', ids)]
return (True, self.search(cr, uid, new_domain, limit=limit, order=order, count=True, context=context), ids)