<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="view_xeno_hr_module_list" model="ir.ui.view">
            <field name="name">xeno.hr.module.list</field>
            <field name="model">xeno.hr.module</field>
            <field name="arch" type="xml">
                <list editable="bottom">
                    <field name="sequence" widget="handle"/>
                    <field name="name"/>
                    <field name="active" widget="boolean_toggle"/>
                </list>
            </field>
        </record>

        <record id="action_xeno_hr_module" model="ir.actions.act_window">
            <field name="name">HR Modules</field>
            <field name="res_model">xeno.hr.module</field>
            <field name="view_mode">list</field>
            <field name="help" type="html">
                <p class="o_view_nocontent_smiling_face">No HR modules configured yet.</p>
                <p>Each module (e.g. Attendance, Leave) is a self-service unit
                employees can be granted access to, either individually or via
                an Employee Group tag. Inactive modules drop out of the access
                screens without deleting existing grants.</p>
            </field>
        </record>
    </data>
    <data noupdate="1">
        <menuitem id="menu_xeno_system_access"
                  name="System Access"
                  parent="hr.menu_human_resources_configuration"
                  groups="hr.group_hr_user"
                  sequence="21"/>

        <menuitem id="menu_xeno_hr_module"
                  name="HR Modules"
                  parent="menu_xeno_system_access"
                  action="action_xeno_hr_module"
                  groups="hr.group_hr_user"
                  sequence="1"/>
    </data>
</odoo>
