<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="view_hr_attendance_error" model="ir.ui.view">
            <field name="name">Attendance Report Error</field>
            <field name="model">hr.attendance.error</field>
            <field name="arch" type="xml">
            <form string="Print Attendance Report Error" version="7.0">
                <group string="Analysis Information" col="4">
                    <field name="init_date"/>
                    <field name="end_date"/>
                    <field name="max_delay"/>
                </group>
                <label string="Bellow this delay, the error is considered to be voluntary" colspan="2"/>
                <footer>
                    <button name="print_report" string="Print" type="object" class="oe_highlight"/>
                    or
                    <button string="Cancel" class="oe_link" special="cancel" />
                </footer>
            </form>
            </field>
        </record>

        <record id="action_hr_attendance_error" model="ir.actions.act_window">
            <field name="name">Attendance Error Report</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">hr.attendance.error</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

        <record model="ir.values" id="hr_attendance_error_values">
            <field name="model_id" ref="hr.model_hr_employee" />
            <field name="name">Attendance Error Report</field>
            <field name="key2">client_print_multi</field>
            <field name="value" eval="'ir.actions.act_window,' + str(ref('action_hr_attendance_error'))" />
            <field name="key">action</field>
            <field name="model">hr.employee</field>
        </record>

    </data>
</openerp>
