2010-06-25 10:07:43 +00:00
<?xml version="1.0" encoding="utf-8"?>
<openerp >
<data >
<record id= "view_hr_timesheet_report_graph" model= "ir.ui.view" >
<field name= "name" > hr.timesheet.report.graph</field>
<field name= "model" > hr.timesheet.report</field>
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
<graph string= "Timesheet" type= "bar" >
<field name= "user_id" />
<field name= "quantity" operator = "+" />
</graph>
</field>
</record>
<record id= "view_hr_timesheet_report_tree" model= "ir.ui.view" >
<field name= "name" > hr.timesheet.report.tree</field>
<field name= "model" > hr.timesheet.report</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Timesheet Analysis" >
<field name= "year" invisible= "1" />
<field name= "month" invisible= "1" />
<field name= "date" invisible= "1" />
2010-09-23 11:45:06 +00:00
<field name= "day" invisible= "1" />
2010-06-25 10:07:43 +00:00
<field name= "user_id" invisible= "1" />
<field name= "company_id" invisible= "1" />
<field name= "journal_id" invisible= "1" />
<field name= "product_id" invisible= "1" />
2010-10-04 11:13:44 +00:00
<field name= "account_id" invisible= "1" groups= "analytic.group_analytic_accounting" />
2010-06-25 10:07:43 +00:00
<field name= "general_account_id" invisible= "1" />
<field name= "quantity" sum= "Hours" />
<field name= "cost" sum= "Total Cost" />
</tree>
</field>
</record>
<record id= "view_hr_timesheet_report_search" model= "ir.ui.view" >
<field name= "name" > hr.timesheet.report.search</field>
<field name= "model" > hr.timesheet.report</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Timesheet" >
2011-03-15 14:08:59 +00:00
<group >
2010-09-23 11:45:06 +00:00
<filter icon= "terp-go-year" string= " Year "
2010-06-25 10:07:43 +00:00
name="year"
2010-06-23 06:26:00 +00:00
domain="[('date','< =', time.strftime('%%Y-%%m-%%d')),('date','> =',time.strftime('%%Y-01-01'))]"
help="Timesheet in current year"/>
2010-09-23 11:45:06 +00:00
<filter icon= "terp-go-month" string= " Month "
2010-06-25 10:07:43 +00:00
name="month"
2010-10-13 13:13:43 +00:00
domain="[('date','< =',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('date','> =',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
2010-06-23 06:26:00 +00:00
help="Timesheet in current month"/>
<filter icon= "terp-go-month"
2010-09-23 11:45:06 +00:00
string=" Month-1 "
2011-01-13 11:42:07 +00:00
domain="[('date','< =', (datetime.date.today() - relativedelta(day=31, months=1)).strftime('%%Y-%%m-%%d')),('date','> =',(datetime.date.today() - relativedelta(day=1,months=1)).strftime('%%Y-%%m-%%d'))]"
2010-06-23 06:26:00 +00:00
help="Timesheet of last month"/>
2010-06-25 10:07:43 +00:00
<separator orientation= "vertical" />
2010-10-04 11:13:44 +00:00
<field name= "account_id" groups= "analytic.group_analytic_accounting" />
<field name= "user_id" />
2010-06-25 10:07:43 +00:00
</group>
<newline />
2010-07-30 11:04:14 +00:00
<group expand= "0" string= "Extended Filters..." groups= "base.group_extended" >
2010-06-25 10:07:43 +00:00
<field name= "general_account_id" />
<field name= "product_id" />
<field name= "journal_id" />
<separator orientation= "vertical" />
<field name= "company_id" widget= "selection" groups= "base.group_multi_company" />
2010-07-07 12:36:49 +00:00
<newline />
<field name= "date" />
2010-06-25 10:07:43 +00:00
</group>
2010-06-23 06:26:00 +00:00
<newline />
<group expand= "1" string= "Group By..." >
<filter string= "User" name= "group_user_id" icon= "terp-personal" context= "{'group_by':'user_id'}" />
<filter string= "Product" icon= "terp-accessories-archiver" context= "{'group_by':'product_id'}" />
2010-10-04 11:13:44 +00:00
<separator orientation= "vertical" groups= "analytic.group_analytic_accounting" />
2010-10-28 07:23:40 +00:00
<filter string= "Analytic Account" icon= "terp-folder-green" context= "{'group_by':'account_id'}" groups= "analytic.group_analytic_accounting" />
2010-06-23 06:26:00 +00:00
<filter string= "General Account" icon= "terp-folder-orange" context= "{'group_by':'general_account_id'}" />
<filter string= "Company" icon= "terp-go-home" context= "{'group_by':'company_id'}" groups= "base.group_multi_company" />
<separator orientation= "vertical" />
2010-09-23 11:45:06 +00:00
<filter string= "Day" icon= "terp-go-today" context= "{'group_by':'day'}" help= "Group by day of date" />
2010-06-23 06:26:00 +00:00
<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-10-04 11:13:44 +00:00
2010-06-25 10:07:43 +00:00
</search>
</field>
</record>
<record id= "action_hr_timesheet_report_stat_all" model= "ir.actions.act_window" >
<field name= "name" > Timesheet Analysis</field>
<field name= "res_model" > hr.timesheet.report</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,graph</field>
<field name= "context" > {'search_default_month':1,'search_default_group_user_id':1,'group_by_no_leaf':1,'group_by':[]}</field>
2010-11-12 06:23:46 +00:00
<field name= "help" > This report performs analysis on timesheets created by your human resources in the system. It allows you to have a full overview of entries done by your employees. You can group them by specific selection criteria thanks to the search tool.</field>
2010-06-25 10:07:43 +00:00
</record>
<menuitem
action="action_hr_timesheet_report_stat_all"
2010-06-30 12:45:20 +00:00
id="menu_hr_timesheet_report_all"
2010-07-07 13:54:58 +00:00
parent="hr_timesheet.menu_hr_reporting_timesheet" sequence="0"/>
2010-06-25 10:07:43 +00:00
</data>
</openerp>