[FIX] Fixed last fix.

bzr revid: tde@openerp.com-20120405133614-6ol9zrqc1t4g3air
This commit is contained in:
Thibault Delavallée 2012-04-05 15:36:14 +02:00
parent 920c7b4af4
commit dc698712ff
1 changed files with 3 additions and 3 deletions

View File

@ -4885,14 +4885,14 @@ class BaseModel(object):
if hasattr(self, 'needaction_get_record_ids'):
ids = self.needaction_get_record_ids(cr, uid, user_id, limit=8192, context=context)
if not ids:
return (True, 0, [])
return [True, 0, []]
if domain:
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)
return [True, self.search(cr, uid, new_domain, limit=limit, order=order, count=True, context=context), ids]
else:
return (False, 0, [])
return [False, 0, []]
# Transience
def is_transient(self):