<commit_before><?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">

    <record id="hr_holiday_status_hl" model="hr.leave.type">
        <field name="name">Overtime Compensation</field>
        <field name="limit" eval="False"/>
        <field name="color_name">blue</field>
        <field name="validity_start" eval="time.strftime('%Y-01-01')"/>
        <field name="validity_stop" eval="time.strftime('%Y-12-31')"/>
        <field name="request_unit">hour</field>
    </record>

    <record id="hr_holiday_status_dv" model="hr.leave.type">
        <field name="name">Parental Leaves</field>
        <field name="limit" eval="True"/>
        <field name="color_name">brown</field>
        <field name="validation_type">both</field>
    </record>

    <record id="holiday_status_cla" model="hr.leave.type">
        <field name="name" eval="'Paid Time Off ' + time.strftime('%Y')"/>
        <field name="limit" eval="False"/>
        <field name="color_name">wheat</field>
        <field name="validity_start" eval="time.strftime('%Y-01-01')"/>
        <field name="validity_stop" eval="time.strftime('%Y-12-31')"/>
        <field name="accrual" eval="True"/>
    </record>

    <record id="hr_holidays_employee1_allocation_cl" model="hr.leave.allocation">
        <field name="name">Legal Leaves for <NAME></field>
        <field name="holiday_status_id" ref="holiday_status_cl"/>
        <field name="number_of_days_temp">20</field>
        <field name="employee_id" ref="hr.employee_admin"/>
        <field name="state">confirm</field>
    </record>

    <record id="hr_holidays_employee1_int_tour" model="hr.leave.allocation">
        <field name="name">International Tour</field>
        <field name="holiday_status_id" ref="holiday_status_comp"/>
        <field name="number_of_days_temp">7</field>
        <field name="employee_id" ref="hr.employee_admin"/>
        <field name="state">confirm</field>
    </record>

    <record id="hr_holidays_employee1_allocation_hl" model="hr.leave.allocation">
        <field name="name">Overtime Compensation</field>
        <field name="holiday_status_id" ref="hr_holiday_status_hl"/>
        <field name="number_of_hours">160</field>
        <field name="number_of_days_temp">20</field>
        <field name="employee_id" ref="hr.employee_admin"/>
    </record>

    <record id="hr_holidays_employee1_vc" model="hr.leave.allocation">
        <field name="name">Summer Vacation</field>
        <field name="holiday_status_id" ref="holiday_status_unpaid"/>
        <field name="number_of_days_temp">7</field>
        <field name="employee_id" ref="hr.employee_admin"/>
    </record>

    <!-- approve the first 3 leave allocations -->
    <function model="hr.leave.allocation" name="action_approve" eval="[[ref('hr_holidays.hr_holidays_employee1_allocation_cl'), ref('hr_holidays.hr_holidays_employee1_int_tour'), ref('hr_holidays_employee1_allocation_hl')]]"/>

    <record id="hr_holidays_employee1_cl" model="hr.leave">
        <field name="name">Trip with Family</field>
        <field name="holiday_status_id" ref="holiday_status_comp"/>
        <field eval="time.strftime('%Y-%m-01')" name="date_from"/>
        <field eval="time.strftime('%Y-%m-03')" name="date_to"/>
        <field name="number_of_days_temp">3</field>
        <field name="employee_id" ref="hr.employee_admin"/>
    </record>

    <record id="hr_holidays_employee1_sl" model="hr.leave">
        <field name="name">Doctor Appointment</field>
        <field name="holiday_status_id" ref="holiday_status_sl"/>
        <field eval="time.strftime('%Y-%m-20')" name="date_from"/>
        <field eval="time.strftime('%Y-%m-22')" name="date_to"/>
        <field name="number_of_days_temp">3</field>
        <field name="employee_id" ref="hr.employee_admin"/>
        <field name="state">confirm</field>
    </record>

    <!-- approve the leave request -->
    <function model="hr.leave" name="action_approve" eval="[[ref('hr_holidays.hr_holidays_employee1_sl')]]"/>

</data>
</odoo>
<commit_msg>[FIX] hr_holidays: allow to reinitialize module<commit_after><?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">

    <record id="hr_holiday_status_hl" model="hr.leave.type">
        <field name="name">Overtime Compensation</field>
        <field name="limit" eval="False"/>
        <field name="color_name">blue</field>
        <field name="validity_start" eval="time.strftime('%Y-01-01')"/>
        <field name="validity_stop" eval="time.strftime('%Y-12-31')"/>
        <field name="request_unit">hour</field>
    </record>

    <record id="hr_holiday_status_dv" model="hr.leave.type">
        <field name="name">Parental Leaves</field>
        <field name="limit" eval="True"/>
        <field name="color_name">brown</field>
        <field name="validation_type">both</field>
    </record>

    <record id="holiday_status_cla" model="hr.leave.type">
        <field name="name" eval="'Paid Time Off ' + time.strftime('%Y')"/>
        <field name="limit" eval="False"/>
        <field name="color_name">wheat</field>
        <field name="validity_start" eval="time.strftime('%Y-01-01')"/>
        <field name="validity_stop" eval="time.strftime('%Y-12-31')"/>
        <field name="accrual" eval="True"/>
    </record>

    <record id="hr_holidays_employee1_allocation_cl" model="hr.leave.allocation">
        <field name="name">Legal Leaves for <NAME></field>
        <field name="holiday_status_id" ref="holiday_status_cl"/>
        <field name="number_of_days_temp">20</field>
        <field name="employee_id" ref="hr.employee_admin"/>
        <field name="state">confirm</field>
    </record>

    <record id="hr_holidays_employee1_int_tour" model="hr.leave.allocation">
        <field name="name">International Tour</field>
        <field name="holiday_status_id" ref="holiday_status_comp"/>
        <field name="number_of_days_temp">7</field>
        <field name="employee_id" ref="hr.employee_admin"/>
        <field name="state">confirm</field>
    </record>

    <record id="hr_holidays_employee1_allocation_hl" model="hr.leave.allocation">
        <field name="name">Overtime Compensation</field>
        <field name="holiday_status_id" ref="hr_holiday_status_hl"/>
        <field name="number_of_hours">160</field>
        <field name="number_of_days_temp">20</field>
        <field name="employee_id" ref="hr.employee_admin"/>
    </record>

    <record id="hr_holidays_employee1_vc" model="hr.leave.allocation">
        <field name="name">Summer Vacation</field>
        <field name="holiday_status_id" ref="holiday_status_unpaid"/>
        <field name="number_of_days_temp">7</field>
        <field name="employee_id" ref="hr.employee_admin"/>
    </record>

    <!-- approve the first 3 leave allocations -->
    <function model="hr.leave.allocation" name="action_approve">
        <value model="hr.leave.allocation" search="[
            ('state', '=', 'confirm'),
            ('id', 'in', [ref('hr_holidays.hr_holidays_employee1_allocation_cl')])
        ]"/>
    </function>
    <function model="hr.leave.allocation" name="action_approve">
        <value model="hr.leave.allocation" search="[
            ('state', '=', 'confirm'),
            ('id', 'in', [ref('hr_holidays.hr_holidays_employee1_int_tour')])
        ]"/>
    </function>
    <function model="hr.leave.allocation" name="action_approve">
        <value model="hr.leave.allocation" search="[
            ('state', '=', 'confirm'),
            ('id', 'in', [ref('hr_holidays_employee1_allocation_hl')])
        ]"/>
    </function>

    <record id="hr_holidays_employee1_cl" model="hr.leave">
        <field name="name">Trip with Family</field>
        <field name="holiday_status_id" ref="holiday_status_comp"/>
        <field eval="time.strftime('%Y-%m-01')" name="date_from"/>
        <field eval="time.strftime('%Y-%m-03')" name="date_to"/>
        <field name="number_of_days_temp">3</field>
        <field name="employee_id" ref="hr.employee_admin"/>
    </record>

    <record id="hr_holidays_employee1_sl" model="hr.leave">
        <field name="name">Doctor Appointment</field>
        <field name="holiday_status_id" ref="holiday_status_sl"/>
        <field eval="time.strftime('%Y-%m-20')" name="date_from"/>
        <field eval="time.strftime('%Y-%m-22')" name="date_to"/>
        <field name="number_of_days_temp">3</field>
        <field name="employee_id" ref="hr.employee_admin"/>
        <field name="state">confirm</field>
    </record>

    <!-- approve the leave request -->
    <function model="hr.leave" name="action_approve">
        <value model="hr.leave" search="[
            ('state', '=', 'confirm'),
            ('id', 'in', [ref('hr_holidays.hr_holidays_employee1_sl')])
        ]"/>
    </function>

</data>
</odoo>

{'fraction_non_alphanumeric': 0.1791215059897319, 'fraction_numerical': 0.011409013120365089, 'mean_word_length': 3.665247472059606, 'pattern_counts': {'":': 0, '<': 211, '<?xml version=': 2, '>': 211, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4616570', 'n_tokens_mistral': 3012, 'n_tokens_neox': 2891, 'n_words': 441}