1 <?xml version="1.0" encoding="utf-8"?>
4 <record id="view_hr_timesheet_report_graph" model="ir.ui.view">
5 <field name="name">hr.timesheet.report.graph</field>
6 <field name="model">hr.timesheet.report</field>
7 <field name="arch" type="xml">
8 <graph string="Timesheet" type="bar">
9 <field name="user_id" />
10 <field name="quantity" operator = "+"/>
14 <record id="view_hr_timesheet_report_tree" model="ir.ui.view">
15 <field name="name">hr.timesheet.report.tree</field>
16 <field name="model">hr.timesheet.report</field>
17 <field name="arch" type="xml">
18 <tree string="Timesheet Analysis" create="false">
19 <field name="year" invisible="1"/>
20 <field name="month" invisible="1"/>
21 <field name="date" invisible="1"/>
22 <field name="day" invisible="1"/>
23 <field name="user_id" invisible="1"/>
24 <field name="company_id" invisible="1"/>
25 <field name="journal_id" invisible="1"/>
26 <field name="product_id" invisible="1"/>
27 <field name="account_id" invisible="1" groups="analytic.group_analytic_accounting"/>
28 <field name="general_account_id" invisible="1"/>
29 <field name="quantity" sum="Hours"/>
30 <field name="cost" sum="Total Cost"/>
34 <record id="view_hr_timesheet_report_search" model="ir.ui.view">
35 <field name="name">hr.timesheet.report.search</field>
36 <field name="model">hr.timesheet.report</field>
37 <field name="arch" type="xml">
38 <search string="Timesheet">
39 <field name="account_id" groups="analytic.group_analytic_accounting"/>
40 <field name="user_id"/>
41 <group expand="0" string="Extended Filters...">
42 <field name="general_account_id"/>
43 <field name="product_id"/>
44 <field name="journal_id"/>
45 <field name="company_id" groups="base.group_multi_company"/>
48 <group expand="1" string="Group By...">
49 <filter string="User" name="group_user_id" icon="terp-personal" context="{'group_by':'user_id'}"/>
50 <filter string="Product" icon="terp-accessories-archiver" context="{'group_by':'product_id'}"/>
51 <filter string="Analytic Account" icon="terp-folder-green" context="{'group_by':'account_id'}" groups="analytic.group_analytic_accounting"/>
52 <filter string="General Account" icon="terp-folder-orange" context="{'group_by':'general_account_id'}"/>
53 <filter string="Company" icon="terp-go-home" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
54 <filter string="Day" icon="terp-go-today" context="{'group_by':'day'}" help="Group by day of date"/>
55 <filter string="Month" icon="terp-go-month" context="{'group_by':'month'}" help="Group by month of date"/>
56 <filter string="Year" icon="terp-go-year" context="{'group_by':'year'}" help="Group by year of date"/>
62 <record id="action_hr_timesheet_report_stat_all" model="ir.actions.act_window">
63 <field name="name">Timesheet Analysis</field>
64 <field name="res_model">hr.timesheet.report</field>
65 <field name="view_type">form</field>
66 <field name="view_mode">tree,graph</field>
67 <field name="context">{'search_default_year':1,'search_default_month':1,'search_default_group_user_id':1,'group_by_no_leaf':1,'group_by':[]}</field>
68 <field name="help" type="html">
70 This report performs analysis on timesheets created by your
71 human resources in the system. It allows you to have a full
72 overview of entries done by your employees. You can group them
73 by specific selection criteria thanks to the search tool.
78 action="action_hr_timesheet_report_stat_all"
79 id="menu_hr_timesheet_report_all"
80 parent="hr.menu_hr_reporting" sequence="3"/>