[FIX] M2O field, widget=selection not display all records

bzr revid: rga@rga-desktop-20100414102826-huc2x2h891r8k2j8
This commit is contained in:
rga 2010-04-14 15:58:26 +05:30
parent b481a12eea
commit 7d81ac0cde
1 changed files with 1 additions and 1 deletions

View File

@ -1167,7 +1167,7 @@ class orm_template(object):
dom = column._domain
dom += eval(node.get('domain','[]'), {'uid':user, 'time':time})
context.update(eval(node.get('context','{}')))
attrs['selection'] = self.pool.get(relation).name_search(cr, user, '', dom, context=context)
attrs['selection'] = self.pool.get(relation).name_search(cr, user, '', dom, context=context,limit=None)
if (node.get('required') and not int(node.get('required'))) or not column.required:
attrs['selection'].append((False,''))
fields[node.get('name')] = attrs