<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2018 Tecnativa - Pedro M. Baeza
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
    <record id="rule_multi_company_theoretical_vs_worked_report" model="ir.rule">
        <field name="name">Theoretical vs worked hours multi-company</field>
        <field name="model_id" ref="model_hr_attendance_theoretical_time_report" />
        <field name="domain_force">[('company_id', 'in', company_ids)]</field>
    </record>
    <record model="ir.rule" id="rule_theoretical_vs_worked_report_own">
        <field name="name">Theoretical vs worked hours: Own attendances</field>
        <field name="model_id" ref="model_hr_attendance_theoretical_time_report" />
        <field name="groups" eval="[(4, ref('hr_attendance.group_hr_attendance'))]" />
        <field name="domain_force">[['employee_id.user_id', '=', user.id]]</field>
    </record>
    <record model="ir.rule" id="rule_theoretical_vs_worked_report_all">
        <field name="name">Theoretical vs worked hours: All attendances</field>
        <field name="model_id" ref="model_hr_attendance_theoretical_time_report" />
        <field
            name="groups"
            eval="[(4, ref('hr_attendance.group_hr_attendance_user'))]"
        />
        <field name="domain_force">[[1, '=', 1]]</field>
    </record>
</odoo>
