File: hr_timesheet_attendance_report_security.xml

package info (click to toggle)
odoo 18.0.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 878,716 kB
  • sloc: javascript: 927,937; python: 685,670; xml: 388,524; sh: 1,033; sql: 415; makefile: 26
file content (29 lines) | stat: -rw-r--r-- 1,622 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
    <record id="hr_timesheet_attendance_report_restricted_company_rule" model="ir.rule">
        <field name="name">Restricted Timesheet attendance Record: multi-company</field>
        <field name="model_id" ref="model_hr_timesheet_attendance_report"/>
        <field name="domain_force"> [('company_id', 'in', company_ids + [False])]</field>
    </record>

    <record id="hr_timesheet_attendance_report_rule_user" model="ir.rule">
        <field name="name">Timesheet attendance Report: User</field>
        <field name="model_id" ref="model_hr_timesheet_attendance_report"/>
        <field name="domain_force">[('employee_id', '=', user.employee_id.id)]</field>
        <field name="groups" eval="[(4, ref('hr_timesheet.group_hr_timesheet_user'))]"/>
    </record>

    <record id="hr_timesheet_attendance_report_rule_approver" model="ir.rule">
        <field name="name">Timesheet attendance Report: Approver</field>
        <field name="model_id" ref="model_hr_timesheet_attendance_report"/>
        <field name="domain_force">[(1, '=', 1)]</field>
        <field name="groups" eval="[(4, ref('hr_timesheet.group_hr_timesheet_approver'))]"/>
    </record>

    <record id="hr_timesheet_attendance_report_rule_manager" model="ir.rule">
        <field name="name">Timesheet attendance Report: Administrator</field>
        <field name="model_id" ref="model_hr_timesheet_attendance_report"/>
        <field name="domain_force">[(1, '=', 1)]</field>
        <field name="groups" eval="[(4, ref('hr_timesheet.group_timesheet_manager'))]"/>
    </record>
</odoo>