<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record model="ir.ui.view" id="generate_attendance_sheet_form">
        <field name="name">Generate Missing Attendance Sheets</field>
        <field name="model">shift.generate_missing_attendance_sheets</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <label
                        for="date_start"
                        string="Generate missing attendance sheets in a given time interval"
                    />
                    <group>
                        <field name="date_start" />
                        <field name="date_end" />
                    </group>
                </sheet>
                <footer>
                    <button
                        type="object"
                        name="generate_missing_attendance_sheets"
                        string="Generate"
                        class="oe_highlight"
                    />
                </footer>
            </form>
        </field>
    </record>

    <record id="action_missing_attendance_sheets" model="ir.actions.act_window">
        <field name="name">Generate Missing Past Attendance Sheets</field>
        <field name="res_model">shift.generate_missing_attendance_sheets</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
    </record>

    <menuitem
        id="menu_missing_attendance_sheets"
        name="Generate missing past attendance sheets"
        parent="shift.menu_configuration_top"
        action="action_missing_attendance_sheets"
        sequence="2"
    />
</odoo>
