<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="view_hr_attendance_sigh_in_out" model="ir.ui.view">
            <field name="name">hr.sign.in.out.form</field>
            <field name="model">hr.sign.in.out</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Sign in / Sign out">
                    <separator colspan="4" string="Sign in / Sign out"/>
                    <label colspan="4" nolabel="1" string="If you need your staff to sign in when they arrive at work and sign out again at the end of the day, OpenERP allows you to manage this with this tool. If each employee has been linked to a system user, then they can encode their time with this action button."/>
                    <newline/>
                    <group colspan="4" >
                    <field name="name" />
                    <field name="state" />
                    </group>
                    <separator colspan="4"/>
                    <group colspan="4" col="6">
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
                        <button icon="terp-gtk-jump-to-ltr" string="Sign in" name="si_check" type="object"/>
                        <button icon="terp-gtk-jump-to-rtl" string="Sign out" name="so_check" type="object"/>
                   </group>
               </form>
            </field>
        </record>

       <record id="view_hr_attendance_message" model="ir.ui.view">
            <field name="name">hr.sign.in.out.form</field>
            <field name="model">hr.sign.in.out</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Sign in / Sign out">
                    <separator string="Sign-Out Entry must follow Sign-In." colspan="4" />
                    <group colspan="4" col="6">
                        <button icon="gtk-cancel" special="cancel" string="Ok"/>
                   </group>
               </form>
            </field>
        </record>

        <record id="action_hr_attendance_sigh_in_out" model="ir.actions.act_window">
            <field name="name">Sign in / Sign out</field>
            <field name="res_model">hr.sign.in.out</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
           <field name="view_id" ref="view_hr_attendance_sigh_in_out"/>
           <field name="target">new</field>
           <field name="help">Sign in / Sign out. In some companies, staff have to sign in when they arrive at work and sign out again at the end of the day. If each employee has been linked to a system user, then they can encode their time with this action button.</field>
        </record>

        <menuitem action="action_hr_attendance_sigh_in_out" id="menu_hr_attendance_sigh_in_out"
            parent="menu_hr_attendance" sequence="4"/>

       <record id="view_hr_attendance_so_ask" model="ir.ui.view">
            <field name="name">hr.sign.in.out.ask.form</field>
            <field name="model">hr.sign.in.out.ask</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="hr.sign.out.ask">
                    <group colspan="4" >
                    <separator string="You did not sign out the last time. Please enter the date and time you signed out." colspan="4" />
                    <field name="name" />
                    <field name="last_time" string="Your last sign out" />
                    </group>
                    <separator colspan="4" />
                    <group colspan="4" col="6">
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
                        <button icon="gtk-go-back" string="Sign in" name="sign_in" type="object"/>
                   </group>
               </form>
            </field>
        </record>

       <record id="view_hr_attendance_si_ask" model="ir.ui.view">
            <field name="name">hr.sign.in.out.ask.form</field>
            <field name="model">hr.sign.in.out.ask</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="hr.sign.in.out.ask">
                    <group colspan="4" >
                    <separator string="You did not sign in the last time. Please enter the date and time you signed in." colspan="4" />
                    <field name="name" />
                    <field name="last_time" string="Your last sign in" />
                    </group>
                    <separator colspan="4" />
                    <group colspan="4" col="6">
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
                        <button icon="gtk-go-back" string="Sign out" name="sign_out" type="object"/>
                   </group>
               </form>
            </field>
        </record>

    </data>
</openerp>
