<odoo>
    <record id="hr_attendance.hr_attendance_action" model="ir.actions.act_window">
        <field name="view_mode">tree,kanban,calendar,form</field>
    </record>
    <record id="view_attendance_calendar" model="ir.ui.view">
        <field name="name">hr.attendance.calendar</field>
        <field name="model">hr.attendance</field>
        <field name="arch" type="xml">
            <!-- enable quick_add will result of an error as model hr.attendance doesnt have editable name field  -->
            <calendar
                string="Employee attendances"
                date_start="check_in"
                date_stop="check_out"
                color="employee_id"
                quick_add="false"
            >
                <field name="employee_id" />
            </calendar>
        </field>
    </record>
</odoo>
