[FIX] id instead of ids in domain

bzr revid: tde@openerp.com-20120403075434-585pd5j93jeurelr
This commit is contained in:
Thibault Delavallée 2012-04-03 09:54:34 +02:00
parent b2f5e9fac0
commit 157506ef69
1 changed files with 1 additions and 1 deletions

View File

@ -747,7 +747,7 @@ class BaseModel(object):
if domain:
new_domain = eval(domain) + [('id', 'in', ids)]
else:
new_domain = [('ids', 'in', ids)]
new_domain = [('id', 'in', ids)]
return (True, model_obj.search(cr, uid, new_domain, limit=limit, order=order, count=True), ids)
else:
return (False, 0, [])