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

        <record id="attendance1" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-01 08:21')" name="name"/>
            <field name="action">sign_in</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance2" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-01 11:51')" name="name"/>
            <field name="action">sign_out</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance3" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-02 12:47')" name="name"/>
            <field name="action">sign_in</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance4" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-02 19:53')" name="name"/>
            <field name="action">sign_out</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance5" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-03 07:32')" name="name"/>
            <field name="action">sign_in</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance6" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-03 12:32')" name="name"/>
            <field name="action">sign_out</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance7" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-04 14:01')" name="name"/>
            <field name="action">sign_in</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance8" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-04 17:21')" name="name"/>
            <field name="action">sign_out</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance9" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-05 09:10')" name="name"/>
            <field name="action">sign_in</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance10" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-05 12:42')" name="name"/>
            <field name="action">sign_out</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance11" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-06 13:10')" name="name"/>
            <field name="action">sign_in</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance12" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-06 18:34')" name="name"/>
            <field name="action">sign_out</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance13" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-07 08:21')" name="name"/>
            <field name="action">sign_in</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance14" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-07 18:21')" name="name"/>
            <field name="action">sign_out</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance15" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-08 08:21')" name="name"/>
            <field name="action">sign_in</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance16" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-08 12:54')" name="name"/>
            <field name="action">sign_out</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance17" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-09 13:32')" name="name"/>
            <field name="action">sign_in</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance18" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-09 19:31')" name="name"/>
            <field name="action">sign_out</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance19" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-10 07:10')" name="name"/>
            <field name="action">sign_in</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>

        <record id="attendance20" model="hr.attendance">
            <field eval="time.strftime('%Y-%m-10 12:34')" name="name"/>
            <field name="action">sign_out</field>
            <field name="employee_id" ref="hr.employee1"/>
        </record>
        <record id="property_rule_attendace" model="ir.rule">
            <field name="name">Employee Attendance</field>
            <field model="ir.model" name="model_id" ref="model_hr_attendance"/>
            <field name="domain_force">[('employee_id.user_id','=',user.id)]</field>
            <field name="groups" eval="[(6,0,[ref('base.group_user')])]"/>
        </record>
        <record id="property_rule_attendace_manager" model="ir.rule">
            <field name="name">Manager Attendance</field>
            <field model="ir.model" name="model_id" ref="model_hr_attendance"/>
            <field name="domain_force">['|',('employee_id.user_id','=',user.id),('employee_id.parent_id.user_id','=',user.id )]</field>
            <field name="groups" eval="[(6,0,[ref('base.group_hr_user'),ref('base.group_hr_manager')])]"/>
        </record>
    </data>
</openerp>
