1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
<?xml version="1.0"?>
<terp>
<data>
<record model="ir.ui.view" id="view_report_timesheet_user_user_form">
<field name="name">view.report.timesheet.user.user.form</field>
<field name="model">report.timesheet.user.user</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Timesheet Report">
<field name="name" select="1"/>
<field name="company_id" select="1"/>
<field name="user_company_id" select="1"/>
<field name="total_hours"/>
<field name="total_cost"/>
<field name="user_id" select="1" />
</form>
</field>
</record>
<record model="ir.ui.view" id="view_report_timesheet_user_user_tree">
<field name="name">view.report.timesheet.user.user.tree</field>
<field name="model">report.timesheet.user.user</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Timesheet Report">
<field name="name" select="1"/>
<field name="user_id" select="1" />
<field name="company_id" select="1"/>
<field name="user_company_id" select="1"/>
<field name="total_hours" select="1"/>
<field name="total_cost" select="1"/>
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="action_timesheet_user_user_thismonth">
<field name="name">Timesheets by user and company (this month)</field>
<field name="res_model">report.timesheet.user.user</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('name','=',time.strftime('%Y-%m-01'))]</field>
</record>
<menuitem name="Project/Reporting/This Month/Timesheets by user and company" action="action_timesheet_user_user_thismonth" id="menu_timesheet_user_user_tree2"/>
<record model="ir.actions.act_window" id="action_timesheet_user_user_thismonth_mytask">
<field name="name">My Timesheets by company</field>
<field name="res_model">report.timesheet.user.user</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('name','=',time.strftime('%Y-%m-01')),('user_id','=','uid')]</field>
</record>
<menuitem
name="Project/Reporting/This Month/Timesheets by user and company/My Timesheets by company"
action="action_timesheet_user_user_thismonth_mytask"
id="menu_timesheet_user_user_tree1"/>
<record model="ir.actions.act_window" id="action_timesheet_user_user_allmonth">
<field name="res_model">report.timesheet.user.user</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem name="Project/Reporting/All Months/Timesheets by user and company"
action="action_timesheet_user_user_allmonth"
id="menu_timesheet_user_user_tree3"/>
<record model="ir.actions.act_window" id="action_timesheet_user_user_allmonth_mytask">
<field name="name">My task by company</field>
<field name="res_model">report.timesheet.user.user</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('user_id','=','uid')]</field>
</record>
<menuitem
name="Project/Reporting/All Months/Timesheets by user and company/My task by company"
action="action_timesheet_user_user_allmonth_mytask"
id="menu_timesheet_user_user_tree4"/>
#
# Timesheets by projects and users
#
<record model="ir.ui.view" id="view_report_timesheet_user_form">
<field name="name">view.report.timesheet.user.form</field>
<field name="model">report.timesheet.user</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Timesheet Report">
<field name="name" select="1"/>
<field name="company_id" select="1"/>
<field name="user_company_id" select="1"/>
<field name="total_hours" select="1"/>
<field name="total_cost" select="1"/>
</form>
</field>
</record>
<record model="ir.ui.view" id="view_report_timesheet_user_tree">
<field name="name">view.report.timesheet.user.tree</field>
<field name="model">report.timesheet.user</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Timesheet Report">
<field name="name" select="1"/>
<field name="company_id" select="1"/>
<field name="user_company_id" select="1"/>
<field name="total_hours" select="1"/>
<field name="total_cost" select="1"/>
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="action_timesheet_user_thismonth">
<field name="name">Timesheets by company (this month)</field>
<field name="res_model">report.timesheet.user</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('name','=',time.strftime('%Y-%m-01'))]</field>
</record>
<menuitem name="Project/Reporting/This Month/Timesheets by company"
action="action_timesheet_user_thismonth" id="menu_timesheet_user_tree2"/>
<record model="ir.actions.act_window" id="action_timesheet_user_allmonth">
<field name="res_model">report.timesheet.user</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem name="Project/Reporting/All Months/Timesheets by company"
action="action_timesheet_user_allmonth"
id="menu_timesheet_user_tree3"/>
</data>
</terp>
|