[FIX] M2O field, widget=selection not display all records
bzr revid: rga@rga-desktop-20100414102826-huc2x2h891r8k2j8
This commit is contained in:
parent
b481a12eea
commit
7d81ac0cde
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue