<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="view_xeno_attendance_override_list" model="ir.ui.view">
            <field name="name">xeno.attendance.override.list</field>
            <field name="model">xeno.attendance.override</field>
            <field name="arch" type="xml">
                <list editable="bottom">
                    <field name="employee_code"/>
                    <field name="date"/>
                    <field name="time_in"/>
                    <field name="time_out"/>
                    <field name="note"/>
                    <field name="write_uid" string="Last edited by" readonly="1"/>
                    <field name="write_date" string="Last edited on" readonly="1"/>
                </list>
            </field>
        </record>

        <record id="action_xeno_attendance_override" model="ir.actions.act_window">
            <field name="name">Attendance Overrides</field>
            <field name="res_model">xeno.attendance.override</field>
            <field name="view_mode">list</field>
            <field name="help" type="html">
                <p class="o_view_nocontent_smiling_face">No attendance overrides yet.</p>
                <p>HR corrections to a scanned In/Out time on the Monthly
                Attendance report land here — one row per employee per day.
                The original biometric/GPS scan is never changed; the override
                just wins on the report until removed. Delete a row to revert
                that cell back to the source value.</p>
            </field>
        </record>
    </data>
    <data noupdate="1">
        <menuitem id="menu_xeno_attendance_override"
                  name="Attendance Overrides"
                  parent="hr_attendance.menu_hr_attendance_configuration"
                  action="action_xeno_attendance_override"
                  groups="hr_attendance.group_hr_attendance_officer"
                  sequence="96"/>
    </data>
</odoo>
