2010-10-15 13:00:25 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
<record id="view_timesheet_report_graph" model="ir.ui.view">
|
|
|
|
<field name="name">timesheet.report.graph</field>
|
|
|
|
<field name="model">timesheet.report</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<graph string="Timesheet" type="bar">
|
|
|
|
<field name="user_id" />
|
|
|
|
<field name="quantity" operator = "+"/>
|
|
|
|
<field name="state" group = "True"/>
|
|
|
|
</graph>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="view_timesheet_report_tree" model="ir.ui.view">
|
|
|
|
<field name="name">timesheet.report.tree</field>
|
|
|
|
<field name="model">timesheet.report</field>
|
|
|
|
<field name="arch" type="xml">
|
2011-09-11 13:50:25 +00:00
|
|
|
<tree colors="blue:state == 'draft';black:state in ('confirm','new');gray:state == 'cancel'" string="Timesheet">
|
2010-10-15 13:00:25 +00:00
|
|
|
<field name="date_current" invisible="1"/>
|
|
|
|
<field name="name" invisible="1"/>
|
|
|
|
<field name="user_id" invisible="1"/>
|
|
|
|
<field name="date_from" invisible="1"/>
|
|
|
|
<field name="date_to" invisible="1"/>
|
|
|
|
<field name="state" invisible="1"/>
|
|
|
|
<field name="department_id" invisible="1"/>
|
|
|
|
<field name="company_id" invisible="1"/>
|
|
|
|
<field name="to_invoice" invisible="1"/>
|
|
|
|
<field name="product_id" invisible="1"/>
|
|
|
|
<field name="account_id" invisible="1"/>
|
|
|
|
<field name="general_account_id" invisible="1"/>
|
|
|
|
<field name="year" invisible="1"/>
|
|
|
|
<field name="day" invisible="1"/>
|
|
|
|
<field name="month" invisible="1"/>
|
|
|
|
<field name="quantity" sum="#Quantity"/>
|
|
|
|
<field name="cost" sum="#Cost"/>
|
|
|
|
<field name="total_diff" sum="#Total Diff"/>
|
|
|
|
<field name="total_timesheet" sum="#Total Timesheet"/>
|
|
|
|
<field name="total_attendance" sum="#Total Attendance"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
<record id="view_timesheet_report_search" model="ir.ui.view">
|
|
|
|
<field name="name">timesheet.report.search</field>
|
|
|
|
<field name="model">timesheet.report</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Timesheet">
|
2012-07-20 11:33:33 +00:00
|
|
|
<filter icon="terp-document-new" string="Draft" domain="[('state','=','draft')]"/>
|
|
|
|
<filter icon="terp-camera_test" string="Confirmed" domain="[('state','=','confirm')]"/>
|
|
|
|
<filter icon="terp-dialog-close" string="Done" domain="[('state','=','done')]"/>
|
2012-07-31 11:28:04 +00:00
|
|
|
<field name="account_id"/>
|
|
|
|
<field name="user_id" />
|
2012-04-25 14:11:35 +00:00
|
|
|
<group expand="0" string="Extended Filters...">
|
2010-10-15 13:00:25 +00:00
|
|
|
<field name="general_account_id"/>
|
2012-07-20 11:33:33 +00:00
|
|
|
<field name="to_invoice"/>
|
2010-10-15 13:00:25 +00:00
|
|
|
<field name="product_id"/>
|
2012-07-20 11:33:33 +00:00
|
|
|
<field name="department_id"/>
|
|
|
|
<field name="company_id" groups="base.group_multi_company"/>
|
2012-05-22 07:28:37 +00:00
|
|
|
<field name="date_current"/>
|
2010-10-15 13:00:25 +00:00
|
|
|
<field name="date_to"/>
|
|
|
|
<field name="date_from"/>
|
|
|
|
</group>
|
|
|
|
<group expand="1" string="Group By...">
|
|
|
|
<filter string="User" name="User_id" icon="terp-personal" context="{'group_by':'user_id'}"/>
|
|
|
|
<filter string="Department" icon="terp-personal+" context="{'group_by':'department_id'}"/>
|
|
|
|
<filter string="Product" icon="terp-accessories-archiver" context="{'group_by':'product_id'}"/>
|
|
|
|
<filter string="Type of Invoicing" icon="terp-stock_symbol-selection" context="{'group_by':'to_invoice'}"/>
|
|
|
|
<filter string="Analytic Account" icon="terp-folder-green" context="{'group_by':'account_id'}"/>
|
|
|
|
<filter string="General Account" icon="terp-folder-orange" context="{'group_by':'general_account_id'}"/>
|
2012-05-04 11:57:48 +00:00
|
|
|
<filter string="Status" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
|
2010-10-15 13:00:25 +00:00
|
|
|
<filter string="Company" icon="terp-go-home" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
|
|
|
|
<filter string="Day" icon="terp-go-today" context="{'group_by':'day'}" help="Group by day of date"/>
|
|
|
|
<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>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="action_timesheet_report_stat_all" model="ir.actions.act_window">
|
|
|
|
<field name="name">Timesheet Sheet Analysis</field>
|
|
|
|
<field name="res_model">timesheet.report</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,graph</field>
|
2011-11-11 10:46:06 +00:00
|
|
|
<field name="context">{'search_default_year':1,'search_default_month':1,'search_default_User_id':1,'group_by_no_leaf':1,'group_by':[]}</field>
|
2010-10-15 13:00:25 +00:00
|
|
|
<field name="search_view_id" ref="view_timesheet_report_search"/>
|
|
|
|
</record>
|
|
|
|
<menuitem action="action_timesheet_report_stat_all" id="menu_timesheet_report_all"
|
2012-06-27 11:56:13 +00:00
|
|
|
parent="hr.menu_hr_reporting" sequence="4" groups="base.group_hr_manager"/>
|
2010-10-15 13:00:25 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|