2014-06-16 10:08:26 +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="arch" type="xml">
|
|
|
|
<graph string="Timesheet" type="pivot">
|
|
|
|
<field name="user_id" type="row"/>
|
2014-08-21 10:53:47 +00:00
|
|
|
<field name="date" interval="month" type="col"/>
|
2014-08-22 11:53:46 +00:00
|
|
|
<field name="quantity" type="measure"/>
|
2014-06-16 10:08:26 +00:00
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2014-08-21 10:53:47 +00:00
|
|
|
|
2014-06-16 10:08:26 +00:00
|
|
|
<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="arch" type="xml">
|
|
|
|
<search string="Timesheet">
|
|
|
|
<field name="account_id"/>
|
|
|
|
<field name="user_id"/>
|
2014-08-21 10:53:47 +00:00
|
|
|
<filter string="This Month" name="month" domain="[('date','<=', time.strftime('%Y-%m-%d')),('date','>=',time.strftime('%Y-%m-01'))]" help="month"/>
|
2014-06-16 10:08:26 +00:00
|
|
|
<group expand="0" string="Extended Filters...">
|
|
|
|
<field name="general_account_id"/>
|
|
|
|
<field name="product_id"/>
|
|
|
|
<field name="journal_id"/>
|
|
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
|
|
|
<field name="date"/>
|
|
|
|
</group>
|
|
|
|
<group expand="1" string="Group By">
|
2014-08-21 10:53:47 +00:00
|
|
|
<filter string="User" name="group_user_id" context="{'group_by':'user_id'}"/>
|
|
|
|
<filter string="Company" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
|
|
|
|
<separator/>
|
|
|
|
<filter string="Month" context="{'group_by':'date:month'}" help="Group by month of date"/>
|
2014-06-16 10:08:26 +00:00
|
|
|
</group>
|
|
|
|
</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">graph</field>
|
2014-08-21 10:53:47 +00:00
|
|
|
<field name="context">{'group_by_no_leaf':1,'group_by':[]}</field>
|
2014-06-16 10:08:26 +00:00
|
|
|
</record>
|
|
|
|
|
|
|
|
<menuitem action="action_hr_timesheet_report_stat_all" id="menu_hr_timesheet_report_all"
|
|
|
|
parent="hr.menu_hr_reporting" groups="base.group_hr_manager" sequence="3"/>
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|