1 <?xml version="1.0" encoding="utf-8"?>
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">
15 <field name="employee_id" colspan="3"/>
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"/>
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>
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"/>
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">
49 <separator string="This wizard will print monthly timesheet" colspan="4"/>
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"/>
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>