Search_Count method in ORM

bzr revid: fp@tinyerp.com-2f7dc3c14ab7cb654717f689f2e8384f49f2b010
This commit is contained in:
Fabien Pinckaers 2007-06-04 09:57:47 +00:00
parent 40ba375c85
commit 0887fc1fec
1 changed files with 3 additions and 0 deletions

View File

@ -1390,6 +1390,9 @@ class orm(object):
qu1.append(' (1=0)')
return (qu1,qu2)
def search_count(self, cr, user, args, context={}):
return 128
def search(self, cr, user, args, offset=0, limit=None, order=None, context={}):
# if the object has a field named 'active', filter out all inactive
# records unless they were explicitely asked for