You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
3.4 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2017 MuK IT GmbH
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<odoo>
<record id="view_security_groups_tree" model="ir.ui.view">
<field name="name">muk_security_groups.tree</field>
<field name="model">muk_security.groups</field>
<field name="arch" type="xml">
<tree string="Groups">
<field name="name" />
<field name="perm_read" />
<field name="perm_create" />
<field name="perm_write" />
<field name="perm_unlink" />
<field name="count_users" />
</tree>
</field>
</record>
<record id="view_security_groups_form" model="ir.ui.view">
<field name="name">muk_security_groups.form</field>
<field name="model">muk_security.groups</field>
<field name="arch" type="xml">
<form string="Group">
<sheet>
<div class="oe_title">
<label for="name" class="oe_edit_only" />
<h1>
<field name="name" />
</h1>
</div>
<group string="Group">
<group>
<field name="parent_group" />
</group>
<group>
<field name="count_users" />
</group>
</group>
<group string="Settings">
<group>
<field name="perm_create" />
<field name="perm_read" />
</group>
<group>
<field name="perm_write" />
<field name="perm_unlink" />
</group>
</group>
<notebook>
<page name="users" string="Users">
<field name="users">
<tree string="Users">
<field name="name" />
<field name="login" />
<field name="lang" />
<field name="login_date" />
</tree>
</field>
</page>
<page name="groups" string="Groups">
<field name="groups">
<tree string="Groups">
<field name="name" />
<field name="comment" />
</tree>
</field>
</page>
<page name="extra_users" string="Explicit Users">
<field name="explicit_users">
<tree string="Explicit Users">
<field name="name" />
<field name="login" />
<field name="lang" />
<field name="login_date" />
</tree>
</field>
</page>
<page string="Child Groups">
<field name="child_groups">
<tree string="Groups">
<field name="name" />
<field name="perm_read" />
<field name="perm_create" />
<field name="perm_write" />
<field name="perm_unlink" />
<field name="count_users" />
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="action_security_groups" model="ir.actions.act_window">
<field name="name">Access Groups</field>
<field name="res_model">muk_security.groups</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="menu_security_groups" name="Access Groups"
parent="base.menu_security" action="action_security_groups" />
</odoo>