From cc40e1ff75c5f682cd582b826db0ab92bea1f23b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 28 Mar 2011 11:49:34 +0200 Subject: [PATCH] Add field access on group --- trytond/res/group.py | 2 ++ trytond/res/group.xml | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/trytond/res/group.py b/trytond/res/group.py index 6737ba748d..9f1a362fc0 100644 --- a/trytond/res/group.py +++ b/trytond/res/group.py @@ -33,6 +33,8 @@ class Group(ModelSQL, ModelView): name = fields.Char('Name', required=True, select=1, translate=True) model_access = fields.One2Many('ir.model.access', 'group', 'Access Model') + field_access = fields.One2Many('ir.model.field.access', 'group', + 'Access Field') rule_groups = fields.Many2Many('ir.rule.group-res.group', 'group_id', 'rule_group_id', 'Rules', domain=[('global_p', '!=', True), ('default_p', '!=', True)]) diff --git a/trytond/res/group.xml b/trytond/res/group.xml index a1b05a8a85..5835c0200b 100644 --- a/trytond/res/group.xml +++ b/trytond/res/group.xml @@ -19,13 +19,13 @@ this repository contains the full copyright notices and license terms. --> - - + - - - - + + + + +