Merge branch 'master' of https://github.com/odoo/odoo
[odoo/odoo.git] / addons / hr_timesheet_invoice / wizard / hr_timesheet_analytic_profit_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <record id="view_hr_timesheet_analytic_profit" model="ir.ui.view">
6             <field name="name">Timesheet Profit</field>
7             <field name="model">hr.timesheet.analytic.profit</field>
8             <field name="arch" type="xml">
9                 <form string="Timesheet Profit">
10                    <sheet>
11                        <group> 
12                            <label for="date_from" string="Duration" />
13                            <div>
14                                <field name="date_from" nolabel="1" class="oe_inline" />
15                                - <field name="date_to" nolabel="1" class="oe_inline"/>
16                            </div>
17                        </group>
18                        <group>
19                            <field name="journal_ids" widget="many2many_tags"/>
20                            <field name="employee_ids" widget="many2many_tags"/>
21                        </group>
22                    </sheet>
23                    <footer>
24                         <button name="print_report" string="Print" colspan="1" type="object" class="oe_highlight"/> or
25                         <button special="cancel" string="Cancel" class="oe_link"/>
26                    </footer>
27                </form>
28             </field>
29         </record>
30
31         <record id="action_hr_timesheet_analytic_profit" model="ir.actions.act_window">
32             <field name="name">Timesheet Profit</field>
33             <field name="type">ir.actions.act_window</field>
34             <field name="res_model">hr.timesheet.analytic.profit</field>
35             <field name="view_type">form</field>
36             <field name="view_mode">form</field>
37             <field name="target">new</field>
38         </record>
39
40            <menuitem action="action_hr_timesheet_analytic_profit"
41             id="menu_hr_timesheet_analytic_profit"
42             parent="hr.menu_hr_reporting_timesheet" sequence="3" icon="STOCK_PRINT"/>
43
44     </data>
45 </openerp>