<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="view_hr_attendance_week" model="ir.ui.view">
            <field name="name">Attendances Report Weekly</field>
            <field name="model">hr.attendance.week</field>
            <field name="arch" type="xml">
            <form string="Print Attendance Report Weekly" version="7.0">
                <group>
                    <field name="init_date"/>
                    <field name="end_date"/>
                </group>    
                <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_week" model="ir.actions.act_window">
            <field name="name">Attendances By Week</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">hr.attendance.week</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_week_values">
            <field name="model_id" ref="hr.model_hr_employee" />
            <field name="name">Attendances By Week</field>
            <field name="key2">client_print_multi</field>
            <field name="value" eval="'ir.actions.act_window,' + str(ref('action_hr_attendance_week'))" />
            <field name="key">action</field>
            <field name="model">hr.employee</field>
        </record>
        
    </data>
</openerp>
