Community Days 2008:

User groups: add a comment field

Patch from Vincent from C2C

bzr revid: chs@tinyerp.com-0f9911f0195f21e4e77ecb17b11ae8a27a3f2c41
This commit is contained in:
Christophe Simonis 2008-06-26 07:57:59 +00:00
parent 89574b584b
commit 777a5d7b3c
2 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@
<page string="Group">
<field name="name" colspan="4" select="1"/>
<field name="users" colspan="4"/>
<field name="comment" colspan="4"/>
</page>
<page string="Menus">
<field name="menu_access" colspan="4"/>

View File

@ -39,6 +39,7 @@ class groups(osv.osv):
'rule_groups': fields.many2many('ir.rule.group', 'group_rule_group_rel',
'group_id', 'rule_group_id', 'Rules', domain="[('global', '<>', True)]"),
'menu_access': fields.many2many('ir.ui.menu', 'ir_ui_menu_group_rel', 'gid', 'menu_id', 'Access Menu'),
'comment' : fields.text('Comment',size=250),
}
_sql_constraints = [
('name_uniq', 'unique (name)', 'The name of the group must be unique !')