[IMP] res_users: add tips in selector group fields

bzr revid: rco@openerp.com-20111206110920-34fp50qt3v1hscef
This commit is contained in:
Raphael Collet
2011-12-06 12:09:20 +01:00
parent 12ce46102f
commit 9e1de990fd
+2
View File
@@ -883,10 +883,12 @@ class users_view(osv.osv):
'help': g.comment,
}
else:
tips = ['%s: %s' % (g.name, g.comment or '') for g in gs]
res[name_selection_groups(map(int, gs))] = {
'type': 'selection',
'string': _('Role'),
'selection': [(g.id, g.name) for g in gs],
'help': '\n'.join(tips),
}
return res