| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<data> |
| 4 |
<record id="timesheets_analysis_report_list" model="ir.ui.view"> |
| 5 |
<field name="name">timesheets.analysis.report.list</field> |
| 6 |
<field name="model">timesheets.analysis.report</field> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<list> |
| 9 |
<field name="date"/> |
| 10 |
<field name="employee_id"/> |
| 11 |
<field name="project_id"/> |
| 12 |
<field name="task_id"/> |
| 13 |
<field name="currency_id" column_invisible="1"/> |
| 14 |
<field name="amount" string="Timesheet Costs" optional="hide" sum="Total"/> |
| 15 |
<field name="unit_amount" optional="show" widget="timesheet_uom" sum="Total" |
| 16 |
decoration-danger="unit_amount > 24 or unit_amount < 0" |
| 17 |
decoration-muted="unit_amount == 0" |
| 18 |
/> |
| 19 |
</list> |
| 20 |
</field> |
| 21 |
</record> |
| 22 |
|
| 23 |
<record id="timesheets_analysis_report_form" model="ir.ui.view"> |
| 24 |
<field name="name">timesheets.analysis.report.form</field> |
| 25 |
<field name="model">timesheets.analysis.report</field> |
| 26 |
<field name="arch" type="xml"> |
| 27 |
<form string="Timesheets Analysis"> |
| 28 |
<sheet> |
| 29 |
<group> |
| 30 |
<group> |
| 31 |
<field name="project_id"/> |
| 32 |
<field name="task_id"/> |
| 33 |
</group> |
| 34 |
<group> |
| 35 |
<field name="employee_id"/> |
| 36 |
<field name="date"/> |
| 37 |
<field name="amount" invisible="1"/> |
| 38 |
<field name="unit_amount" string="Time Spent" widget="timesheet_uom" decoration-danger="unit_amount > 24" |
| 39 |
decoration-muted="unit_amount == 0"/> |
| 40 |
</group> |
| 41 |
</group> |
| 42 |
<field name="name" widget="text" nolabel="1"/> |
| 43 |
</sheet> |
| 44 |
</form> |
| 45 |
</field> |
| 46 |
</record> |
| 47 |
|
| 48 |
<record id="timesheets_analysis_report_pivot_employee" model="ir.ui.view"> |
| 49 |
<field name="name">timesheets.analysis.report.pivot</field> |
| 50 |
<field name="model">timesheets.analysis.report</field> |
| 51 |
<field name="arch" type="xml"> |
| 52 |
<pivot string="Timesheets Analysis" sample="1"> |
| 53 |
<field name="employee_id" type="row"/> |
| 54 |
<field name="date" interval="month" type="col"/> |
| 55 |
<field name="amount" string="Timesheet Costs"/> |
| 56 |
<field name="unit_amount" type="measure" widget="timesheet_uom"/> |
| 57 |
</pivot> |
| 58 |
</field> |
| 59 |
</record> |
| 60 |
|
| 61 |
<record id="timesheets_analysis_report_graph_employee" model="ir.ui.view"> |
| 62 |
<field name="name">timesheets.analysis.report.graph</field> |
| 63 |
<field name="model">timesheets.analysis.report</field> |
| 64 |
<field name="arch" type="xml"> |
| 65 |
<graph string="Timesheets" sample="1" js_class="hr_timesheet_graphview"> |
| 66 |
<field name="employee_id" type="row"/> |
| 67 |
<field name="amount" string="Timesheet Costs"/> |
| 68 |
<field name="unit_amount" type="measure" widget="timesheet_uom"/> |
| 69 |
</graph> |
| 70 |
</field> |
| 71 |
</record> |
| 72 |
|
| 73 |
<record id="timesheets_analysis_report_pivot_project" model="ir.ui.view"> |
| 74 |
<field name="name">timesheets.analysis.report.pivot</field> |
| 75 |
<field name="model">timesheets.analysis.report</field> |
| 76 |
<field name="arch" type="xml"> |
| 77 |
<pivot string="Timesheets Analysis" sample="1"> |
| 78 |
<field name="project_id" type="row"/> |
| 79 |
<field name="date" interval="month" type="col"/> |
| 80 |
<field name="amount" string="Timesheet Costs"/> |
| 81 |
<field name="unit_amount" type="measure" widget="timesheet_uom"/> |
| 82 |
</pivot> |
| 83 |
</field> |
| 84 |
</record> |
| 85 |
|
| 86 |
<record id="timesheets_analysis_report_graph_project" model="ir.ui.view"> |
| 87 |
<field name="name">timesheets.analysis.report.graph</field> |
| 88 |
<field name="model">timesheets.analysis.report</field> |
| 89 |
<field name="arch" type="xml"> |
| 90 |
<graph string="Timesheets" sample="1" js_class="hr_timesheet_graphview"> |
| 91 |
<field name="project_id" type="row"/> |
| 92 |
<field name="amount" string="Timesheet Costs"/> |
| 93 |
<field name="unit_amount" type="measure" widget="timesheet_uom"/> |
| 94 |
</graph> |
| 95 |
</field> |
| 96 |
</record> |
| 97 |
|
| 98 |
<record id="timesheets_analysis_report_pivot_task" model="ir.ui.view"> |
| 99 |
<field name="name">timesheets.analysis.report.pivot</field> |
| 100 |
<field name="model">timesheets.analysis.report</field> |
| 101 |
<field name="arch" type="xml"> |
| 102 |
<pivot string="Timesheets Analysis" sample="1"> |
| 103 |
<field name="amount" string="Timesheet Costs"/> |
| 104 |
<field name="project_id" type="row"/> |
| 105 |
<field name="task_id" type="row"/> |
| 106 |
<field name="date" interval="month" type="col"/> |
| 107 |
<field name="unit_amount" type="measure" widget="timesheet_uom"/> |
| 108 |
</pivot> |
| 109 |
</field> |
| 110 |
</record> |
| 111 |
|
| 112 |
<record id="timesheets_analysis_report_graph_task" model="ir.ui.view"> |
| 113 |
<field name="name">timesheets.analysis.report.graph</field> |
| 114 |
<field name="model">timesheets.analysis.report</field> |
| 115 |
<field name="arch" type="xml"> |
| 116 |
<graph string="Timesheets" sample="1" js_class="hr_timesheet_graphview"> |
| 117 |
<field name="project_id" type="row"/> |
| 118 |
<field name="task_id" type="row"/> |
| 119 |
<field name="amount" string="Timesheet Costs"/> |
| 120 |
<field name="unit_amount" type="measure" widget="timesheet_uom"/> |
| 121 |
</graph> |
| 122 |
</field> |
| 123 |
</record> |
| 124 |
|
| 125 |
<record id="hr_timesheet_report_search" model="ir.ui.view"> |
| 126 |
<field name="name">timesheets.analysis.report.search</field> |
| 127 |
<field name="model">timesheets.analysis.report</field> |
| 128 |
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_search"/> |
| 129 |
<field name="mode">primary</field> |
| 130 |
<field name="arch" type="xml"> |
| 131 |
<search position="attributes"> |
| 132 |
<attribute name="string">Timesheet Report</attribute> |
| 133 |
</search> |
| 134 |
</field> |
| 135 |
</record> |
| 136 |
|
| 137 |
<!-- Group by employee --> |
| 138 |
<record id="act_hr_timesheet_report" model="ir.actions.act_window"> |
| 139 |
<field name="name">Timesheets by Employee</field> |
| 140 |
<field name="res_model">timesheets.analysis.report</field> |
| 141 |
<field name="path">timesheets-by-employee</field> |
| 142 |
<field name="domain">[('project_id', '!=', False)]</field> |
| 143 |
<field name="context">{}</field> |
| 144 |
<field name="search_view_id" ref="hr_timesheet_report_search"/> |
| 145 |
<field name="view_mode">pivot,graph</field> |
| 146 |
<field name="help" type="html"> |
| 147 |
<p class="o_view_nocontent_empty_folder"> |
| 148 |
No data yet! |
| 149 |
</p><p> |
| 150 |
Analyze the projects and tasks on which your employees spend their time.<br/> |
| 151 |
Evaluate which part is billable and what costs it represents. |
| 152 |
</p> |
| 153 |
</field> |
| 154 |
</record> |
| 155 |
|
| 156 |
<record model="ir.actions.act_window.view" id="act_hr_timesheet_report_pivot"> |
| 157 |
<field name="sequence" eval="5"/> |
| 158 |
<field name="view_mode">pivot</field> |
| 159 |
<field name="view_id" ref="hr_timesheet.timesheets_analysis_report_pivot_employee"/> |
| 160 |
<field name="act_window_id" ref="act_hr_timesheet_report"/> |
| 161 |
</record> |
| 162 |
|
| 163 |
<record id="timesheet_action_view_report_by_employee_graph" model="ir.actions.act_window.view"> |
| 164 |
<field name="sequence" eval="6"/> |
| 165 |
<field name="view_mode">graph</field> |
| 166 |
<field name="view_id" ref="hr_timesheet.timesheets_analysis_report_graph_employee"/> |
| 167 |
<field name="act_window_id" ref="act_hr_timesheet_report"/> |
| 168 |
</record> |
| 169 |
|
| 170 |
<record id="timesheet_action_view_report_by_employee_list" model="ir.actions.act_window.view"> |
| 171 |
<field name="sequence" eval="10"/> |
| 172 |
<field name="view_mode">list</field> |
| 173 |
<field name="view_id" ref="hr_timesheet.timesheets_analysis_report_list"/> |
| 174 |
<field name="act_window_id" ref="act_hr_timesheet_report"/> |
| 175 |
</record> |
| 176 |
|
| 177 |
<!-- Group by project--> |
| 178 |
<record id="timesheet_action_report_by_project" model="ir.actions.act_window"> |
| 179 |
<field name="name">Timesheets by Project</field> |
| 180 |
<field name="res_model">timesheets.analysis.report</field> |
| 181 |
<field name="path">timesheets-by-project</field> |
| 182 |
<field name="domain">[('project_id', '!=', False)]</field> |
| 183 |
<field name="context">{}</field> |
| 184 |
<field name="search_view_id" ref="hr_timesheet_report_search"/> |
| 185 |
<field name="view_mode">pivot,graph</field> |
| 186 |
<field name="help" type="html"> |
| 187 |
<p class="o_view_nocontent_empty_folder"> |
| 188 |
No data yet! |
| 189 |
</p><p> |
| 190 |
Analyze the projects and tasks on which your employees spend their time.<br/> |
| 191 |
Evaluate which part is billable and what costs it represents. |
| 192 |
</p> |
| 193 |
</field> |
| 194 |
</record> |
| 195 |
|
| 196 |
<record id="timesheet_action_view_report_by_project_pivot" model="ir.actions.act_window.view"> |
| 197 |
<field name="sequence" eval="5"/> |
| 198 |
<field name="view_mode">pivot</field> |
| 199 |
<field name="view_id" ref="hr_timesheet.timesheets_analysis_report_pivot_project"/> |
| 200 |
<field name="act_window_id" ref="timesheet_action_report_by_project"/> |
| 201 |
</record> |
| 202 |
|
| 203 |
<record id="timesheet_action_view_report_by_project_graph" model="ir.actions.act_window.view"> |
| 204 |
<field name="sequence" eval="6"/> |
| 205 |
<field name="view_mode">graph</field> |
| 206 |
<field name="view_id" ref="hr_timesheet.timesheets_analysis_report_graph_project"/> |
| 207 |
<field name="act_window_id" ref="timesheet_action_report_by_project"/> |
| 208 |
</record> |
| 209 |
|
| 210 |
<record id="timesheet_action_view_report_by_project_list" model="ir.actions.act_window.view"> |
| 211 |
<field name="sequence" eval="10"/> |
| 212 |
<field name="view_mode">list</field> |
| 213 |
<field name="view_id" ref="hr_timesheet.timesheets_analysis_report_list"/> |
| 214 |
<field name="act_window_id" ref="timesheet_action_report_by_project"/> |
| 215 |
</record> |
| 216 |
|
| 217 |
<!-- Group by task --> |
| 218 |
<record id="timesheet_action_report_by_task" model="ir.actions.act_window"> |
| 219 |
<field name="name">Timesheets by Task</field> |
| 220 |
<field name="res_model">timesheets.analysis.report</field> |
| 221 |
<field name="path">timesheets-by-task</field> |
| 222 |
<field name="domain">[('project_id', '!=', False)]</field> |
| 223 |
<field name="context">{}</field> |
| 224 |
<field name="search_view_id" ref="hr_timesheet_report_search"/> |
| 225 |
<field name="view_mode">pivot,graph</field> |
| 226 |
<field name="help" type="html"> |
| 227 |
<p class="o_view_nocontent_empty_folder"> |
| 228 |
No data yet! |
| 229 |
</p><p> |
| 230 |
Analyze the projects and tasks on which your employees spend their time.<br/> |
| 231 |
Evaluate which part is billable and what costs it represents. |
| 232 |
</p> |
| 233 |
</field> |
| 234 |
</record> |
| 235 |
|
| 236 |
<record id="timesheet_action_view_report_by_task_pivot" model="ir.actions.act_window.view"> |
| 237 |
<field name="sequence" eval="5"/> |
| 238 |
<field name="view_mode">pivot</field> |
| 239 |
<field name="view_id" ref="hr_timesheet.timesheets_analysis_report_pivot_task"/> |
| 240 |
<field name="act_window_id" ref="timesheet_action_report_by_task"/> |
| 241 |
</record> |
| 242 |
|
| 243 |
<record id="timesheet_action_view_report_by_task_graph" model="ir.actions.act_window.view"> |
| 244 |
<field name="sequence" eval="6"/> |
| 245 |
<field name="view_mode">graph</field> |
| 246 |
<field name="view_id" ref="hr_timesheet.timesheets_analysis_report_graph_task"/> |
| 247 |
<field name="act_window_id" ref="timesheet_action_report_by_task"/> |
| 248 |
</record> |
| 249 |
|
| 250 |
<record id="timesheet_action_view_report_by_task_list" model="ir.actions.act_window.view"> |
| 251 |
<field name="sequence" eval="10"/> |
| 252 |
<field name="view_mode">list</field> |
| 253 |
<field name="view_id" ref="hr_timesheet.timesheets_analysis_report_list"/> |
| 254 |
<field name="act_window_id" ref="timesheet_action_report_by_task"/> |
| 255 |
</record> |
| 256 |
</data> |
| 257 |
</odoo> |