<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
      <record id="view_hr_timesheet_current_open" model="ir.ui.view">
        <field name="name">hr_timesheet_current_open.form</field>
        <field name="model">hr.timesheet.current.open</field>
        <field name="arch" type="xml">
            <form string="My Timesheet">
               <group>
                    <separator string="It will open your current timesheet"/>
               </group>
               <footer>
                    <button name="open_timesheet" string="Open" type="object" class="oe_highlight"/>
                    or
                    <button string="Cancel" class="oe_link" special="cancel" />
               </footer>
           </form>
        </field>
    </record>

    <record id="action_hr_timesheet_current_open" model="ir.actions.act_window">
        <field name="name">My Timesheet</field>
        <field name="res_model">hr.timesheet.current.open</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
        <field name="view_id" ref="view_hr_timesheet_current_open"/>
        <field name="target">new</field>
        <field name="help">My Timesheet opens your timesheet so that you can book your activities into the system. From the same form, you can register your attendances (Sign In/Out) and describe the working hours made on the different projects. At the end of the period defined in the company, the timesheet is confirmed by the user and can be validated by his manager. If required, as defined on the project, you can generate the invoices based on the timesheet.</field>
    </record>

    <menuitem action="action_hr_timesheet_current_open" icon="STOCK_NEW" id="menu_act_hr_timesheet_sheet_form_my_current" name="My Timesheet" parent="hr_attendance.menu_hr_time_tracking" sequence="1"/>

    </data>
</openerp>
