<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="view_xeno_attendance_code_map_list" model="ir.ui.view">
            <field name="name">xeno.attendance.code.map.list</field>
            <field name="model">xeno.attendance.code.map</field>
            <field name="arch" type="xml">
                <list editable="bottom">
                    <field name="source_code"/>
                    <field name="target_code"/>
                    <field name="note"/>
                    <field name="active" widget="boolean_toggle"/>
                </list>
            </field>
        </record>

        <record id="action_xeno_attendance_code_map" model="ir.actions.act_window">
            <field name="name">Attendance Code Remaps</field>
            <field name="res_model">xeno.attendance.code.map</field>
            <field name="view_mode">list</field>
            <field name="help" type="html">
                <p class="o_view_nocontent_smiling_face">No remaps configured yet.</p>
                <p>Some employees scanned in under an old/duplicate employee_code
                on the biometric device before their record was corrected in
                HRSystem. This maps those legacy codes to the current one, so the
                Monthly Attendance report's "unmapped code" check can tell a truly
                new/unrecognized code apart from a known old one.</p>
            </field>
        </record>
    </data>
    <data noupdate="1">
        <menuitem id="menu_xeno_attendance_code_map"
                  name="Attendance Code Remaps"
                  parent="hr_attendance.menu_hr_attendance_configuration"
                  action="action_xeno_attendance_code_map"
                  groups="hr_attendance.group_hr_attendance_officer"
                  sequence="95"/>
    </data>
</odoo>
