[MERGE] mail: merge to get all changes related to mail search view improvment
[odoo/odoo.git] / addons / hr_timesheet / wizard / hr_timesheet_print_employee_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5                 <!-- Print Employee Timesheet -->
6         <record id="view_hr_timesheet_employee" model="ir.ui.view">
7             <field name="name">hr.analytical.timesheet.employee.form</field>
8             <field name="model">hr.analytical.timesheet.employee</field>
9             <field name="type">form</field>
10             <field name="arch" type="xml">
11                                 <form string="Monthly Employee Timesheet">
12                                         <group colspan="4">
13                                                 <field name="month"/>
14                                                 <field name="year"/>
15                                                 <field name="employee_id" colspan="3"/>
16                                         </group>
17                                         <separator colspan="4"/>
18                     <group colspan="4" col="6">
19                         <button icon="gtk-cancel" special="cancel" string="Cancel"/>
20                         <button icon="gtk-print" string="Print" name="print_report" type="object"/>
21                    </group>
22                 </form>
23                         </field>
24                 </record>
25
26                 <record id="action_hr_timesheet_employee" model="ir.actions.act_window">
27             <field name="name">Employee Timesheet</field>
28             <field name="res_model">hr.analytical.timesheet.employee</field>
29             <field name="view_type">form</field>
30             <field name="view_mode">tree,form</field>
31            <field name="view_id" ref="view_hr_timesheet_employee"/>
32            <field name="target">new</field>
33         </record>
34
35         <menuitem action="action_hr_timesheet_employee"
36                 id="menu_hr_timesheet_employee"
37                 parent="menu_hr_reporting_timesheet"
38                 sequence="2" icon="STOCK_PRINT"/>
39
40
41       <!-- Print My Timesheet -->
42       <record id="view_hr_timesheet_my" model="ir.ui.view">
43             <field name="name">hr.analytical.timesheet.my.form</field>
44             <field name="model">hr.analytical.timesheet.employee</field>
45             <field name="type">form</field>
46             <field name="arch" type="xml">
47                 <form string="Print My Timesheet">
48                     <group colspan="4">
49                     <separator string="This wizard will print monthly timesheet" colspan="4"/>
50                         <field name="month"/>
51                         <field name="year"/>
52                     </group>
53                     <separator colspan="4"/>
54                     <group colspan="4" col="6">
55                         <button icon="gtk-cancel" special="cancel" string="Cancel"/>
56                         <button icon="gtk-print" string="Print" name="print_report" type="object"/>
57                    </group>
58                </form>
59             </field>
60         </record>
61
62                 <record id="action_hr_timesheet_my" model="ir.actions.act_window">
63             <field name="name">My Timesheet</field>
64             <field name="res_model">hr.analytical.timesheet.employee</field>
65             <field name="view_type">form</field>
66             <field name="view_mode">tree,form</field>
67            <field name="view_id" ref="view_hr_timesheet_my"/>
68            <field name="target">new</field>
69         </record>
70
71     </data>
72 </openerp>