2008-07-01 15:58:58 +00:00
<?xml version="1.0" encoding="utf-8"?>
2008-09-10 17:56:00 +00:00
<openerp >
2008-06-29 08:26:07 +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" />
2010-04-14 12:15:43 +00:00
<record id= "view_timesheet_line_graph" model= "ir.ui.view" >
<field name= "name" > report.timesheet.line.graph</field>
<field name= "model" > report.timesheet.line</field>
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
<graph string= "Timesheet Line" type= "bar" >
<field name= "account_id" />
<field name= "quantity" operator= "+" />
<field group= "True" name= "user_id" />
</graph>
</field>
</record>
<record id= "view_timesheet_line_tree" model= "ir.ui.view" >
<field name= "name" > report.timesheet.line.tree</field>
<field name= "model" > report.timesheet.line</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Timesheet Line" >
2010-04-22 06:13:09 +00:00
<field name= "date" invisible= "1" />
<field name= "day" invisible= "1" />
<field name= "quantity" sum= "Quantity" />
<field name= "cost" sum= "Cost" />
<field name= "user_id" invisible= "1" />
2010-04-14 12:15:43 +00:00
<field name= "name" invisible= "1" />
<field name= "month" invisible= "1" />
<field name= "account_id" invisible= "1" />
<field name= "product_id" invisible= "1" />
<field name= "invoice_id" invisible= "1" />
</tree>
</field>
</record>
<record id= "view_timesheet_line_search" model= "ir.ui.view" >
<field name= "name" > report.timesheet.line.search</field>
<field name= "model" > report.timesheet.line</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Timesheet by user" >
<group col= "10" colspan= "4" >
2010-08-17 11:13:35 +00:00
<filter icon= "terp-go-year" string= "This Year"
domain="[('date','< =', time.strftime('%%Y-%%m-%%d')),('date','> ',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]"
help="Timesheet lines in this year"/>
<filter icon= "terp-go-month" string= "This Month"
name="month"
domain="[('date','< =', time.strftime('%%Y-%%m-%%d')), ('date','> ',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]"
help="Timesheet lines in this month"/>
<filter icon= "terp-go-week"
string=" 7 Days "
separator="1"
domain="[('date','< =', time.strftime('%%Y-%%m-%%d')), ('date','> ',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"
help="Timesheet lines during last 7 days"/>
<separator orientation= "vertical" />
<field name= "user_id" widget= "selection" >
<filter icon= "terp-personal"
string="Non Assigned timesheets to users"
help="Non Assigned timesheets to users"
domain="[('user_id','=',False)]"/>
</field>
<field name= "account_id" />
2010-04-14 12:15:43 +00:00
<field name= "product_id" />
</group>
2010-06-04 06:02:25 +00:00
<group expand= "0" string= "Group By..." >
<filter string= "User" name= "User" icon= "terp-personal" context= "{'group_by':'user_id'}" />
2010-05-24 06:26:13 +00:00
<separator orientation= "vertical" />
2010-06-04 06:02:25 +00:00
<filter string= "Account" icon= "terp-folder-orange" context= "{'group_by':'account_id'}" />
<filter string= "Product" icon= "terp-accessories-archiver" context= "{'group_by':'product_id'}" />
<filter string= "Invoice" icon= "terp-dolar" context= "{'group_by':'invoice_id'}" />
2010-05-19 13:07:03 +00:00
<separator orientation= "vertical" />
2010-06-16 11:41:41 +00:00
<filter string= "Day" icon= "terp-go-today" context= "{'group_by':'day'}" />
2010-06-04 07:32:54 +00:00
<filter string= "Month" icon= "terp-go-month" context= "{'group_by':'month'}" />
<filter string= "Year" icon= "terp-go-year" context= "{'group_by':'name'}" />
2010-04-22 06:13:09 +00:00
</group>
2010-04-14 12:15:43 +00:00
<newline />
2010-07-30 11:04:14 +00:00
<group expand= "0" string= "Extended Filters..." colspan= "10" col= "12" >
2010-05-19 13:07:03 +00:00
<field name= "date" />
<separator orientation= "vertical" />
<field name= "invoice_id" widget= "selection" />
2010-04-14 12:15:43 +00:00
</group>
</search>
</field>
</record>
<record id= "action_timesheet_line_stat_all" model= "ir.actions.act_window" >
<field name= "name" > Timesheet Line</field>
<field name= "res_model" > report.timesheet.line</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,graph</field>
2010-05-19 13:07:03 +00:00
<field name= "context" > {'search_default_month':1,'search_default_User':1,'search_default_user_id':uid,'group_by_no_leaf':1,'group_by':[]}</field>
2010-04-14 12:15:43 +00:00
<field name= "search_view_id" ref= "view_timesheet_line_search" />
</record>
2010-04-28 06:27:43 +00:00
<!-- menuitem action="action_timesheet_line_stat_all" id="menu_report_timesheet_line_all" parent="hr.menu_hr_reporting"/ -->
2010-04-14 12:15:43 +00:00
2008-07-01 11:15:14 +00:00
<!-- Statistics report on timesheet by user -->
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_timesheet_user_graph" model= "ir.ui.view" >
<field name= "name" > report_timesheet.user.graph</field>
<field name= "model" > report_timesheet.user</field>
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
<graph string= "Timesheet by user" type= "bar" >
<field name= "name" />
<field name= "quantity" operator= "+" />
<field group= "True" name= "user_id" />
2008-06-29 08:26:07 +00:00
</graph>
</field>
</record>
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_timesheet_user_form" model= "ir.ui.view" >
<field name= "name" > report_timesheet.timesheet.user.form</field>
<field name= "model" > report_timesheet.user</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Timesheet by user" >
<field name= "name" select= "1" />
2009-11-24 13:58:06 +00:00
<field name= "month" select= "1" />
2008-07-01 15:58:58 +00:00
<field name= "user_id" select= "1" />
2008-06-29 08:26:07 +00:00
</form>
</field>
</record>
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_timesheet_user_tree" model= "ir.ui.view" >
<field name= "name" > report_timesheet.timesheet.user.tree</field>
<field name= "model" > report_timesheet.user</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Timesheet by user" >
<field name= "name" />
2009-12-15 13:31:31 +00:00
<field name= "month" />
2008-07-01 15:58:58 +00:00
<field name= "user_id" />
<field name= "quantity" />
<field name= "cost" />
2008-06-29 08:26:07 +00:00
</tree>
</field>
</record>
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_timesheet_account_date_graph_account" model= "ir.ui.view" >
<field name= "name" > report_timesheet.account.date.graph</field>
<field name= "model" > report_timesheet.account.date</field>
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
<graph orientation= "horizontal" string= "Daily timesheet per account" type= "bar" >
<field name= "name" />
<field name= "quantity" operator= "+" />
<field group= "True" name= "account_id" />
2008-06-29 08:26:07 +00:00
</graph>
</field>
</record>
2009-12-15 13:31:31 +00:00
2009-12-02 11:29:25 +00:00
<record id= "view_timesheet_user_search" model= "ir.ui.view" >
<field name= "name" > report_timesheet.timesheet.user.search</field>
<field name= "model" > report_timesheet.user</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Timesheet by user" >
2010-04-06 16:15:10 +00:00
<group col= "10" colspan= "4" >
<separator orientation= "vertical" />
2010-06-04 06:02:25 +00:00
<filter icon= "terp-go-year" string= "This Year" domain= "[('name','=',time.strftime('%%Y'))]" help= "Timesheet by user in this year" />
<filter icon= "terp-go-month" string= "This Month" domain= "[('month','=',time.strftime('%%m'))]" help= "Timesheet by user in this month" />
2010-04-06 16:15:10 +00:00
<separator orientation= "vertical" />
<field name= "name" select= "1" />
<field name= "month" select= "1" />
<field name= "user_id" select= "1" />
</group>
2009-12-02 11:29:25 +00:00
</search>
</field>
2008-06-29 08:26:07 +00:00
</record>
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<record id= "action_timesheet_user_stat_all" model= "ir.actions.act_window" >
<field name= "name" > Timesheet by User</field>
<field name= "res_model" > report_timesheet.user</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > graph,tree</field>
2010-05-13 13:17:19 +00:00
<field name= "context" > {"search_default_user_id":uid}</field>
2009-12-02 11:29:25 +00:00
<field name= "search_view_id" ref= "view_timesheet_user_search" />
2008-06-29 08:26:07 +00:00
</record>
2010-04-14 13:07:56 +00:00
<!-- <menuitem action="action_timesheet_user_stat_all" id="menu_report_timesheet_user_all" parent="hr.menu_hr_reporting"/> -->
2009-12-15 13:31:31 +00:00
2008-07-01 11:15:14 +00:00
<!-- Statistics report on timesheets to invoice -->
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_timesheet_invoice_graph" model= "ir.ui.view" >
<field name= "name" > report_timesheet.invoice.graph</field>
<field name= "model" > report_timesheet.invoice</field>
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
<graph string= "Timesheet by invoice" >
<field name= "account_id" />
<field name= "amount_invoice" operator= "+" />
2008-06-29 08:26:07 +00:00
</graph>
</field>
</record>
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_timesheet_invoice_form" model= "ir.ui.view" >
<field name= "name" > report_timesheet.timesheet.invoice.form</field>
<field name= "model" > report_timesheet.invoice</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Timesheet by invoice" >
<field name= "account_id" select= "1" />
<field name= "manager_id" select= "1" />
<field name= "user_id" select= "1" />
2008-06-29 08:26:07 +00:00
</form>
</field>
</record>
2009-12-15 13:31:31 +00:00
2009-12-12 13:43:06 +00:00
<record id= "view_timesheet_invoice_search" model= "ir.ui.view" >
<field name= "name" > report_timesheet.timesheet.invoice.search</field>
<field name= "model" > report_timesheet.invoice</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Timesheet by invoice" >
2010-04-06 16:15:10 +00:00
<separator orientation= "vertical" />
2009-12-12 13:43:06 +00:00
<field name= "account_id" select= "1" />
<field name= "manager_id" select= "1" />
<field name= "user_id" select= "1" />
</search>
</field>
</record>
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_timesheet_invoice_tree" model= "ir.ui.view" >
<field name= "name" > report_timesheet.timesheet.invoice.tree</field>
<field name= "model" > report_timesheet.invoice</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Timesheets to invoice" >
<field name= "user_id" />
<field name= "account_id" />
<field name= "manager_id" />
<field name= "quantity" />
<field name= "amount_invoice" />
2008-06-29 08:26:07 +00:00
</tree>
</field>
</record>
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<record id= "action_timesheet_invoice_stat_all" model= "ir.actions.act_window" >
<field name= "name" > Timesheet by Invoice</field>
<field name= "res_model" > report_timesheet.invoice</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > graph,tree</field>
2010-05-13 13:17:19 +00:00
<field name= "context" > {"search_default_user_id":uid}</field>
2009-12-12 13:43:06 +00:00
<field name= "search_view_id" ref= "view_timesheet_invoice_search" />
2008-06-29 08:26:07 +00:00
</record>
2010-04-14 13:07:56 +00:00
<!-- <menuitem action="action_timesheet_invoice_stat_all" id="menu_report_timesheet_invoice_all" parent="hr.menu_hr_reporting"/> -->
2009-12-15 13:31:31 +00:00
2008-07-01 11:15:14 +00:00
<!-- Statistics report on daily timesheets per account -->
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_timesheet_account_date_tree" model= "ir.ui.view" >
<field name= "name" > report_timesheet.account.date.tree</field>
<field name= "model" > report_timesheet.account.date</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Daily timesheet per account" >
<field name= "name" />
2009-12-15 13:31:31 +00:00
<field name= "month" select= "1" />
2008-07-01 15:58:58 +00:00
<field name= "account_id" />
<field name= "user_id" />
<field name= "quantity" />
2008-06-29 08:26:07 +00:00
</tree>
</field>
</record>
2008-07-01 15:58:58 +00:00
<record id= "view_timesheet_account_date_graph" model= "ir.ui.view" >
<field name= "name" > report_timesheet.account.date.graph</field>
<field name= "model" > report_timesheet.account.date</field>
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
<graph orientation= "horizontal" string= "Daily timesheet per account" >
<field name= "account_id" />
<field name= "quantity" operator= "+" />
<field group= "True" name= "user_id" />
2008-06-29 08:26:07 +00:00
</graph>
</field>
</record>
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_timesheet_account_date_form" model= "ir.ui.view" >
<field name= "name" > report_timesheet.timesheet.account.date.form</field>
<field name= "model" > report_timesheet.account.date</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Daily timesheet by account" >
<field name= "name" select= "1" />
2009-11-24 13:58:06 +00:00
<field name= "month" select= "1" />
2008-07-01 15:58:58 +00:00
<field name= "account_id" select= "1" />
<field name= "user_id" select= "1" />
<field name= "quantity" />
2008-06-29 08:26:07 +00:00
</form>
</field>
</record>
2009-12-15 13:31:31 +00:00
2009-12-02 11:29:25 +00:00
<record id= "view_timesheet_account_date_search" model= "ir.ui.view" >
<field name= "name" > report_timesheet.timesheet.account.date.search</field>
<field name= "model" > report_timesheet.account.date</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Daily timesheet by account" >
2010-04-06 16:15:10 +00:00
<group col= "10" colspan= "4" >
<separator orientation= "vertical" />
2010-06-04 06:02:25 +00:00
<filter icon= "terp-go-year" string= "This Year" domain= "[('name','=',time.strftime('%%Y'))]" help= "Daily Timesheets for this year" />
<filter icon= "terp-go-month" string= "This Month" domain= "[('month','=',time.strftime('%%m'))]" help= "Daily Timesheets of this month" />
2010-04-06 16:15:10 +00:00
<separator orientation= "vertical" />
<field name= "name" select= "1" />
<field name= "month" select= "1" />
<field name= "account_id" select= "1" />
<field name= "user_id" select= "1" />
</group>
2009-12-02 11:29:25 +00:00
</search>
</field>
2008-06-29 08:26:07 +00:00
</record>
2009-12-15 13:31:31 +00:00
2009-12-02 11:29:25 +00:00
<record id= "action_timesheet_account_date_stat_all" model= "ir.actions.act_window" >
<field name= "name" > Daily Timesheet by Account</field>
2008-07-01 15:58:58 +00:00
<field name= "res_model" > report_timesheet.account.date</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > graph,tree</field>
2010-05-13 13:17:19 +00:00
<field name= "context" > {"search_default_user_id":uid}</field>
2009-12-02 11:29:25 +00:00
<field name= "search_view_id" ref= "view_timesheet_account_date_search" />
2008-06-29 08:26:07 +00:00
</record>
2010-04-14 13:07:56 +00:00
<!-- <menuitem action="action_timesheet_account_date_stat_all" id="menu_report_timesheet_account_date_all" parent="hr.menu_hr_reporting"/> -->
2009-12-15 13:31:31 +00:00
2008-07-01 11:15:14 +00:00
<!-- Statistics report on timesheets per account -->
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_timesheet_account_tree" model= "ir.ui.view" >
<field name= "name" > report_timesheet.account.tree</field>
<field name= "model" > report_timesheet.account</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Timesheet per account" >
<field name= "name" />
2009-12-15 13:31:31 +00:00
<field name= "month" />
2008-07-01 15:58:58 +00:00
<field name= "account_id" />
<field name= "user_id" />
<field name= "quantity" />
2008-06-29 08:26:07 +00:00
</tree>
</field>
</record>
2008-07-01 15:58:58 +00:00
<record id= "view_timesheet_account_graph" model= "ir.ui.view" >
<field name= "name" > report_timesheet.account.graph</field>
<field name= "model" > report_timesheet.account</field>
<field name= "type" > graph</field>
<field name= "arch" type= "xml" >
<graph string= "Timesheet per account" >
<field name= "account_id" />
<field name= "quantity" operator= "+" />
<field group= "True" name= "user_id" />
2008-06-29 08:26:07 +00:00
</graph>
</field>
</record>
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<record id= "view_timesheet_account_form" model= "ir.ui.view" >
<field name= "name" > report_timesheet.timesheet.account.form</field>
<field name= "model" > report_timesheet.account</field>
<field name= "type" > form</field>
<field name= "arch" type= "xml" >
<form string= "Timesheet by account" >
<field name= "name" select= "1" />
2009-11-24 13:58:06 +00:00
<field name= "month" select= "1" />
2008-07-01 15:58:58 +00:00
<field name= "account_id" select= "1" />
<field name= "user_id" select= "1" />
<field name= "quantity" />
2008-06-29 08:26:07 +00:00
</form>
</field>
</record>
2009-12-15 13:31:31 +00:00
2009-12-02 11:29:25 +00:00
<record id= "view_timesheet_account_search" model= "ir.ui.view" >
<field name= "name" > report_timesheet.timesheet.account.search</field>
<field name= "model" > report_timesheet.account</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<form string= "Timesheet by account" >
2010-04-06 16:15:10 +00:00
<group col= "10" colspan= "4" >
<separator orientation= "vertical" />
2010-06-04 06:02:25 +00:00
<filter icon= "terp-go-year" string= "This Year" domain= "[('name','=',time.strftime('%%Y'))]" />
<filter icon= "terp-go-month" string= "This Month" domain= "[('month','=',time.strftime('%%m'))]" />
2010-04-06 16:15:10 +00:00
<separator orientation= "vertical" />
<field name= "name" select= "1" />
<field name= "month" select= "1" />
<field name= "account_id" select= "1" />
<field name= "user_id" select= "1" />
</group>
2009-12-02 11:29:25 +00:00
</form>
</field>
2008-06-29 08:26:07 +00:00
</record>
2009-12-15 13:31:31 +00:00
2009-12-02 11:29:25 +00:00
<record id= "action_timesheet_account_stat_all" model= "ir.actions.act_window" >
<field name= "name" > Timesheet by Account</field>
2008-07-01 15:58:58 +00:00
<field name= "res_model" > report_timesheet.account</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > graph,tree</field>
2009-12-02 11:29:25 +00:00
<field name= "search_view_id" ref= "view_timesheet_account_search" />
2008-06-29 08:26:07 +00:00
</record>
2010-04-14 13:07:56 +00:00
<!-- <menuitem action="action_timesheet_account_stat_all" id="menu_report_timesheet_account_all" parent="hr.menu_hr_reporting"/> -->
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<act_window domain= "[('user_id', '=', active_id)]" id= "act_res_users_2_report_timesheet_user" name= "Timesheets per day" res_model= "report_timesheet.user" src_model= "res.users" />
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<act_window domain= "[('user_id', '=', active_id)]" id= "act_res_users_2_report_timehsheet_account" name= "Timesheets per account" res_model= "report_timesheet.account" src_model= "res.users" />
2009-12-15 13:31:31 +00:00
2008-07-01 15:58:58 +00:00
<act_window domain= "[('account_id', '=', active_id)]" id= "act_account_analytic_account_2_report_timehsheet_account" name= "Timesheets" res_model= "report_timesheet.account" src_model= "account.analytic.account" />
2009-12-15 13:31:31 +00:00
2008-09-03 09:44:40 +00:00
<act_window domain= "[('manager_id', '=', active_id)]" id= "act_res_users_2_report_timesheet_invoice" name= "Costs to invoice" res_model= "report_timesheet.invoice" src_model= "res.users" />
2009-12-15 13:31:31 +00:00
2009-03-07 12:25:04 +00:00
<!-- Random Timesheet -->
2009-12-15 13:31:31 +00:00
2009-03-07 12:25:04 +00:00
<record model= "ir.ui.view" id= "view_random_timesheet_tree" >
<field name= "name" > report.random.timesheet.tree</field>
<field name= "model" > report.random.timesheet</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Random Timesheets" >
2010-08-17 11:13:35 +00:00
<field name= "analytic_account_id" select= "1" groups= "base.group_extended" />
2010-04-06 16:15:10 +00:00
<field name= "name" select= "1" />
<field name= "quantity" select= "2" />
<field name= "date" select= "1" />
2009-03-07 12:25:04 +00:00
</tree>
</field>
2010-04-06 16:15:10 +00:00
</record>
2009-12-15 13:31:31 +00:00
2010-04-06 16:15:10 +00:00
<record model= "ir.actions.act_window" id= "action_random_timesheet_board" >
2009-03-07 12:25:04 +00:00
<field name= "name" > Random Timesheet</field>
<field name= "res_model" > report.random.timesheet</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
<field name= "view_id" ref= "view_random_timesheet_tree" />
</record>
2009-12-15 13:31:31 +00:00
2009-03-14 09:56:41 +00:00
<!-- Random Timesheet Lines of random activities -->
2009-12-15 13:31:31 +00:00
2010-08-17 11:13:35 +00:00
<record id= "view_random_timesheet_lines_search" model= "ir.ui.view" >
2010-05-10 12:59:15 +00:00
<field name= "name" > random.timesheet.lines.search</field>
<field name= "model" > random.timesheet.lines</field>
<field name= "type" > search</field>
<field name= "arch" type= "xml" >
<search string= "Search Timesheet Lines" >
<group col= '15' colspan= '4' >
2010-06-04 06:02:25 +00:00
<filter icon= "terp-check" string= "Current" default= "1" domain= "[('date','=',time.strftime('%%Y-%%m-%%d'))]" />
2010-05-21 06:46:54 +00:00
<separator orientation= "vertical" />
2010-08-17 11:13:35 +00:00
<field name= "user_id" widget= "selection" />
<field name= "product_id" widget= "selection" />
2010-05-10 12:59:15 +00:00
</group>
<newline />
2010-06-04 06:02:25 +00:00
<group expand= "0" string= "Group By..." >
<filter string= "User" icon= "terp-personal" domain= "[]" context= "{'group_by':'user_id'}" />
2010-05-27 13:18:57 +00:00
<separator orientation= "vertical" />
2010-06-04 06:02:25 +00:00
<filter string= "Product" icon= "terp-accessories-archiver" domain= "[]" context= "{'group_by':'product_id'}" />
<filter string= "Analytic Account" icon= "terp-folder-green" domain= "[]" context= "{'group_by':'analytic_account_id'}" />
2010-08-17 11:13:35 +00:00
<filter string= "General Account" icon= "terp-folder-orange" domain= "[]" context= "{'group_by':'general_account_id'}" />
2010-05-10 12:59:15 +00:00
</group>
</search>
</field>
</record>
2009-03-14 09:56:41 +00:00
<record model= "ir.ui.view" id= "view_random_timesheet_lines_tree" >
<field name= "name" > random.timesheet.lines.tree</field>
<field name= "model" > random.timesheet.lines</field>
<field name= "type" > tree</field>
<field name= "arch" type= "xml" >
<tree string= "Random Timesheets Lines" >
2010-04-06 16:15:10 +00:00
<field name= "date" select= "1" />
2010-05-10 12:59:15 +00:00
<field name= "user_id" />
2010-04-06 16:15:10 +00:00
<field name= "name" select= "1" />
<field name= "quantity" />
<field name= "product_id" select= "1" />
2010-08-17 11:13:35 +00:00
<field name= "analytic_account_id" select= "1" groups= "base.group_extended" />
2010-04-06 16:15:10 +00:00
<field name= "uom_id" />
<field name= "amount" />
<field name= "to_invoice" select= "1" />
<field name= "general_account_id" />
2009-03-14 09:56:41 +00:00
</tree>
</field>
2010-04-06 16:15:10 +00:00
</record>
2009-12-15 13:31:31 +00:00
2010-04-06 16:15:10 +00:00
<record model= "ir.actions.act_window" id= "action_random_timesheet_lines_board" >
2009-03-14 09:56:41 +00:00
<field name= "type" > ir.actions.act_window</field>
2010-05-20 09:04:43 +00:00
<field name= "name" > Working Hours</field>
2009-03-14 09:56:41 +00:00
<field name= "res_model" > random.timesheet.lines</field>
<field name= "view_type" > form</field>
<field name= "view_mode" > tree,form</field>
2010-05-19 13:07:03 +00:00
<field name= "context" > {'search_default_user_id':uid }</field>
2009-03-14 09:56:41 +00:00
<field name= "view_id" ref= "view_random_timesheet_lines_tree" />
2010-05-20 09:04:43 +00:00
<field name= "search_view_id" ref= "view_random_timesheet_lines_search" />
2009-03-14 09:56:41 +00:00
</record>
2010-02-03 11:44:21 +00:00
<!-- Time Tracking menu in project Management -->
2010-06-30 12:45:20 +00:00
<!-- <menuitem
2010-05-20 09:04:43 +00:00
icon="terp-project"
id="base.menu_main_pm"
2010-06-17 12:16:52 +00:00
name="Project"
sequence="10"/>
2010-05-20 09:04:43 +00:00
<menuitem
id="base.menu_project_management_time_tracking"
name="Time Tracking"
parent="base.menu_main_pm"
sequence="3"/>
<menuitem
action="action_random_timesheet_lines_board"
id="menu_project_management_timesheet_lines_board"
parent="base.menu_project_management_time_tracking"
2010-06-30 12:45:20 +00:00
sequence="7"/-->
2010-04-06 16:15:10 +00:00
<!-- <menuitem action="action_random_timesheet_lines_board" id="menu_hr_action_random_timesheet_lines_board"
2010-08-04 05:30:50 +00:00
parent="hr_attendance.menu_hr_time_tracking" groups="base.group_hr_manager"/>
2010-06-30 12:45:20 +00:00
<menuitem
2010-05-20 09:04:43 +00:00
action="action_random_timesheet_lines_board"
id="menu_hr_action_random_timesheet_lines_board"
name="Working Hours"
parent="hr_attendance.menu_hr_time_tracking"
2010-08-04 05:30:50 +00:00
groups="base.group_hr_manager" sequence="2"/>-->
2008-06-29 08:26:07 +00:00
</data>
2008-09-10 17:56:00 +00:00
</openerp>