2008-07-01 15:58:58 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2008-09-10 17:56:00 +00:00
|
|
|
<openerp>
|
2010-03-16 12:45:05 +00:00
|
|
|
<data>
|
2010-01-18 10:23:21 +00:00
|
|
|
<menuitem
|
|
|
|
id="hr.menu_hr_reporting"
|
|
|
|
name="Reporting"
|
|
|
|
parent="hr.menu_hr_root"
|
|
|
|
sequence="40" />
|
2009-12-15 12:50:45 +00:00
|
|
|
|
2009-03-17 14:02:37 +00:00
|
|
|
<!-- Report for Users' Timesheet and Task Hours per Month -->
|
2009-12-15 12:50:45 +00:00
|
|
|
|
2009-03-17 14:02:37 +00:00
|
|
|
<record id="view_report_timesheet_task_user_tree" model="ir.ui.view">
|
|
|
|
<field name="name">report.timesheet.task.user.tree</field>
|
|
|
|
<field name="model">report.timesheet.task.user</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Timesheet/Task hours Report Per Month" >
|
|
|
|
<field name="name" select="1"/>
|
2010-03-17 09:35:57 +00:00
|
|
|
<field name="year" select="1" invisible="1"/>
|
|
|
|
<field name="month" select="1" invisible="1"/>
|
2009-03-17 14:02:37 +00:00
|
|
|
<field name="user_id" select="1"/>
|
|
|
|
<field name="timesheet_hrs" widget="float_time" />
|
|
|
|
<field name="task_hrs" widget="float_time"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-03-17 09:35:57 +00:00
|
|
|
<record id="view_report_timesheet_task_user_search" model="ir.ui.view">
|
|
|
|
<field name="name">report.timesheet.task.user.search</field>
|
|
|
|
<field name="model">report.timesheet.task.user</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Tasks by User">
|
2011-03-15 14:08:59 +00:00
|
|
|
<group>
|
2010-11-12 10:14:16 +00:00
|
|
|
<filter icon="terp-go-year" string=" Year "
|
|
|
|
name="year"
|
|
|
|
domain="[('name','<=', time.strftime('%%Y-%%m-%%d')),('name','>=',time.strftime('%%Y-01-01'))]"
|
|
|
|
help="Task Hours in current year"/>
|
|
|
|
<filter icon="terp-go-month" string=" Month "
|
|
|
|
name="month"
|
|
|
|
domain="[('name','<=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('name','>=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
|
|
|
|
help="Task Hours in current month"/>
|
|
|
|
<filter icon="terp-go-month"
|
|
|
|
string=" Month-1 "
|
|
|
|
domain="[('name','<=', (datetime.date.today() - relativedelta(day=31, months=1)).strftime('%%Y-%%m-%%d')),('name','>=',(datetime.date.today() - relativedelta(day=1,months=1)).strftime('%%Y-%%m-%%d'))]"
|
|
|
|
help="Task hours of last month"/>
|
2010-03-17 09:35:57 +00:00
|
|
|
<separator orientation="vertical"/>
|
2010-11-12 10:14:16 +00:00
|
|
|
<field name="user_id"/>
|
2010-03-17 09:35:57 +00:00
|
|
|
</group>
|
|
|
|
<newline/>
|
2011-03-15 14:08:59 +00:00
|
|
|
<group expand="1" string="Group By...">
|
2010-12-08 10:23:05 +00:00
|
|
|
<filter string="User" name="group_user_id" icon="terp-personal" context="{'group_by':'user_id'}"/>
|
2010-11-12 10:14:16 +00:00
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter string="Month" icon="terp-go-month" context="{'group_by':'month'}" help="Group by month of date"/>
|
|
|
|
<filter string="Year" icon="terp-go-year" context="{'group_by':'year'}" help="Group by year of date"/>
|
|
|
|
</group>
|
|
|
|
|
2010-03-17 09:35:57 +00:00
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-11-04 14:21:10 +00:00
|
|
|
|
|
|
|
<record id="view_task_hour_per_month_graph" model="ir.ui.view">
|
|
|
|
<field name="name">report.timesheet.task.user.graph</field>
|
|
|
|
<field name="model">report.timesheet.task.user</field>
|
|
|
|
<field name="type">graph</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph string="Task Hours Per Month" type="bar">
|
|
|
|
<field name="user_id"/>
|
|
|
|
<field name="task_hrs" operator="+"/>
|
|
|
|
<field name="timesheet_hrs" operator="+"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2009-03-17 14:02:37 +00:00
|
|
|
<record id="action_report_timesheet_task_user" model="ir.actions.act_window">
|
2010-09-09 13:27:59 +00:00
|
|
|
<field name="name">Task Hours Per Month</field>
|
2009-03-17 14:02:37 +00:00
|
|
|
<field name="res_model">report.timesheet.task.user</field>
|
|
|
|
<field name="view_type">form</field>
|
2010-11-04 14:21:10 +00:00
|
|
|
<field name="view_mode">tree,graph</field>
|
2010-11-12 10:14:16 +00:00
|
|
|
<field name="context">{'search_default_month':1, 'search_default_group_user_id':1}</field>
|
2009-03-17 14:02:37 +00:00
|
|
|
</record>
|
2010-09-09 13:27:59 +00:00
|
|
|
<menuitem id="menu_timesheet_task_user" parent="hr_timesheet.menu_hr_reporting_timesheet"
|
|
|
|
action="action_report_timesheet_task_user" sequence="1"/>
|
2009-12-15 12:50:45 +00:00
|
|
|
|
2008-06-29 08:26:07 +00:00
|
|
|
</data>
|
2008-09-10 17:56:00 +00:00
|
|
|
</openerp>
|