[FIX] orm/selection widget: fixed leftover typos

bzr revid: odo@openerp.com-20100503234246-9otvvfnedcfqp453
This commit is contained in:
Olivier Dony 2010-05-04 00:42:46 +01:00
parent e05850f9e1
commit 900c2ef440
1 changed files with 5 additions and 3 deletions

View File

@ -1153,8 +1153,10 @@ class orm_template(object):
node.set('invisible', '1')
if 'attrs' in node.attrib:
del(node.attrib['attrs']) #avoid making field visible later
del(node.attrib['groups'])
return can_see
del(node.attrib['groups'])
return can_see
else:
return True
if node.tag in ('field', 'node', 'arrow'):
if node.get('object'):
@ -1202,7 +1204,7 @@ class orm_template(object):
}
attrs = {'views': views}
if node.get('widget') and node.get('widget') == 'selection':
if not check_group(node)
if not check_group(node):
attrs['selection'] = []
# We can not use the 'string' domain has it is defined according to the record !
else: