open-synergy/opnsynid-hr

View on GitHub
hr_timesheet_security/security/res_groups_data.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" ?>
<openerp>
<data noupdate="1">

<!-- Timesheet Operator -->
<record id="group_timesheet_operation_user" model="res.groups">
    <field name="name">User</field>
    <field
                name="category_id"
                ref="hr_timesheet_security.module_hr_timesheet_operation"
            />
    <field name="implied_ids" eval="[(4, ref('base.group_user'))]" />
</record>

<record id="group_timesheet_operation_supervisor" model="res.groups">
    <field name="name">Supervisor</field>
    <field
                name="category_id"
                ref="hr_timesheet_security.module_hr_timesheet_operation"
            />
    <field name="implied_ids" eval="[(4, ref('group_timesheet_operation_user'))]" />
</record>

<record id="group_timesheet_operation_department" model="res.groups">
    <field name="name">Department</field>
    <field
                name="category_id"
                ref="hr_timesheet_security.module_hr_timesheet_operation"
            />
    <field
                name="implied_ids"
                eval="[(4, ref('group_timesheet_operation_supervisor'))]"
            />
</record>

<record id="group_timesheet_operation_company" model="res.groups">
    <field name="name">Company</field>
    <field
                name="category_id"
                ref="hr_timesheet_security.module_hr_timesheet_operation"
            />
    <field
                name="implied_ids"
                eval="[(4, ref('group_timesheet_operation_department'))]"
            />
    <field name="users" eval="[(4, ref('base.user_root'))]" />
</record>

<!-- Timesheet Viewer -->
<record id="group_timesheet_viewer_supervisor" model="res.groups">
    <field name="name">Supervisor</field>
    <field name="category_id" ref="hr_timesheet_security.module_hr_timesheet_viewer" />
    <field name="implied_ids" eval="[(4, ref('base.group_user'))]" />
</record>

<record id="group_timesheet_viewer_department" model="res.groups">
    <field name="name">Department</field>
    <field name="category_id" ref="hr_timesheet_security.module_hr_timesheet_viewer" />
    <field name="implied_ids" eval="[(4, ref('group_timesheet_viewer_supervisor'))]" />
</record>

<record id="group_timesheet_viewer_company" model="res.groups">
    <field name="name">Company</field>
    <field name="category_id" ref="hr_timesheet_security.module_hr_timesheet_viewer" />
    <field name="implied_ids" eval="[(4, ref('group_timesheet_viewer_department'))]" />
    <field name="users" eval="[(4, ref('base.user_root'))]" />
</record>


</data>
</openerp>