<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="view_xeno_leave_late_deduct_form" model="ir.ui.view">
        <field name="name">xeno.leave.late.deduct.form</field>
        <field name="model">xeno.leave.late.deduct</field>
        <field name="arch" type="xml">
            <form string="Process Late Check-in Deductions">
                <div class="alert alert-info" role="alert">
                    Company policy: 10 minutes of late check-in per month is forgiven.
                    Beyond that, the excess is deducted from Annual Leave if the balance
                    covers it, otherwise from Personal Leave. Immediately approved, no
                    approval step. Running this again for a month already processed
                    only picks up employees who weren't processed yet -- it never
                    double-deducts the same employee for the same month.
                </div>
                <group>
                    <field name="month"/>
                    <field name="year"/>
                </group>
                <footer>
                    <button name="action_apply" type="object"
                            string="Process" class="btn-primary"/>
                    <button string="Cancel" special="cancel" class="btn-secondary"/>
                </footer>
            </form>
        </field>
    </record>
</odoo>
