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

        <record id="view_hr_timesheet_analytic_profit" model="ir.ui.view">
            <field name="name">Timesheet Profit</field>
            <field name="model">hr.timesheet.analytic.profit</field>
            <field name="arch" type="xml">
                <form string="Timesheet Profit">
                   <sheet>
                       <group> 
                           <label for="date_from" string="Duration" />
                           <div>
                               <field name="date_from" nolabel="1" class="oe_inline" />
                               - <field name="date_to" nolabel="1" class="oe_inline"/>
                           </div>
                       </group>
                       <group>
                           <field name="journal_ids" widget="many2many_tags"/>
                           <field name="employee_ids" widget="many2many_tags"/>
                       </group>
                   </sheet>
                   <footer>
                        <button name="print_report" string="Print" colspan="1" type="object" class="oe_highlight"/> or
                        <button special="cancel" string="Cancel" class="oe_link"/>
                   </footer>
               </form>
            </field>
        </record>

        <record id="action_hr_timesheet_analytic_profit" model="ir.actions.act_window">
            <field name="name">Timesheet Profit</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">hr.timesheet.analytic.profit</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

           <menuitem action="action_hr_timesheet_analytic_profit"
            id="menu_hr_timesheet_analytic_profit"
            parent="hr.menu_hr_reporting_timesheet" sequence="3" icon="STOCK_PRINT"/>

    </data>
</openerp>
