slight improvement of layout

bzr revid: rco@openerp.com-20110801142607-ie3lqx5j4u77wbbn
This commit is contained in:
Raphael Collet 2011-08-01 16:26:07 +02:00
parent 50a4801ff0
commit 8faed1a08a
1 changed files with 1 additions and 3 deletions

View File

@ -803,7 +803,6 @@ class users_view(osv.osv):
apps, others = self.pool.get('res.groups').get_classified(cr, uid, context)
# create section Applications
elems.append('<separator colspan="6" string="%s"/>' % _('Applications'))
elems.append('<group colspan="6">')
for app, groups in apps:
ids = [g.id for name, g in groups]
app_name = name_boolean_groups(ids)
@ -816,12 +815,11 @@ class users_view(osv.osv):
fields[sel_name] = {'type': 'selection', 'string': 'Group', 'selection': selection}
elems.append("""
<field name="%(app)s"/>
<field name="%(sel)s" nolabel="1"
<field name="%(sel)s" nolabel="1" colspan="2"
attrs="{'invisible': [('%(app)s', '=', False)]}"
modifiers="{'invisible': [('%(app)s', '=', False)]}"/>
<newline/>
""" % {'app': app_name, 'sel': sel_name})
elems.append('</group>')
# create other sections
for sec, groups in others:
elems.append('<separator colspan="6" string="%s"/>' % sec)