[FIX] Name_search() is having now record limit to be 80 instead of None

lp bug: https://launchpad.net/bugs/430133 fixed

bzr revid: jvo@tinyerp.com-20091003094858-njohqhj91rc6is6n
This commit is contained in:
Jay (Open ERP) 2009-10-03 15:18:58 +05:30
parent 1b607549a7
commit f822efa074
1 changed files with 2 additions and 2 deletions

View File

@ -1332,7 +1332,7 @@ class orm_template(object):
def name_get(self, cr, user, ids, context=None):
raise _('The name_get method is not implemented on this object !')
def name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=None):
def name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=80):
raise _('The name_search method is not implemented on this object !')
def copy(self, cr, uid, id, default=None, context=None):
@ -2880,7 +2880,7 @@ class orm(orm_template):
return [(r['id'], tools.ustr(r[self._rec_name])) for r in self.read(cr, user, ids,
[self._rec_name], context, load='_classic_write')]
def name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=None):
def name_search(self, cr, user, name='', args=None, operator='ilike', context=None, limit=80):
if not args:
args = []
if not context: