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.
 
 
 
 
 

74 lines
3.3 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="access_role_view_form" model="ir.ui.view">
<field name="name">access.role.view.form</field>
<field name="model">access.role</field>
<field name="arch" type="xml">
<form>
<sheet>
<div name="button_box" position="inside">
<button class="oe_stat_button" type="object" icon="fa-users"
name="action_get_groups">
<field string="Groups" name="groups_count" widget="statinfo"/>
</button>
<button class="oe_stat_button" type="object" icon="fa-list"
name="action_get_accesses">
<field string="Access Rights" name="accesses_count"
widget="statinfo"/>
</button>
<button class="oe_stat_button" type="object" icon="fa-list-ul"
name="action_get_rules">
<field string="Record Rules" name="rules_count"
widget="statinfo"/>
</button>
</div>
<group>
<group>
<div class="oe_title">
<label for="name" string="Role"/>
<h1>
<div class="d-flex">
<field class="text-break" name="name"
options="{'line_breaks': False}"
placeholder="e.g. Staff"
widget="text"/>
</div>
</h1>
</div>
</group>
</group>
<notebook colspan="4">
<page name="access_rights" string="Access Rights">
<field name="groups_ids"/>
</page>
</notebook>
</sheet>
<chatter/>
</form>
</field>
</record>
<record id="access_role_view_form_groups" model="ir.ui.view">
<field name="name">access.role.view.form.groups</field>
<field name="model">access.role</field>
<field name="inherit_id" ref="access_role_view_form"/>
<field name="arch" type="xml">
<!-- dummy, will be modified by groups -->
<field name="groups_ids" position="after"/>
</field>
</record>
<record id="access_role_view_list" model="ir.ui.view">
<field name="model">access.role</field>
<field name="arch" type="xml">
<list string="Roles">
<field name="name"/>
<field name="user_ids" widget="many2many_tags"/>
</list>
</field>
</record>
<record id="action_access_role" model="ir.actions.act_window">
<field name="name">Access Roles</field>
<field name="res_model">access.role</field>
<field name="view_mode">list,form</field>
</record>
</odoo>