283 lines
14 KiB
XML
283 lines
14 KiB
XML
<?xml version='1.0'?>
|
|
<terp>
|
|
<data>
|
|
|
|
<!-- Statistics report on timesheet by user -->
|
|
|
|
<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 type='bar' string='Timesheet by user'>
|
|
<field name='name'/>
|
|
<field name='quantity' operator='+'/>
|
|
<field name='user_id' group='True'/>
|
|
</graph>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<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'/>
|
|
<field name='user_id' select='1'/>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<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'/>
|
|
<field name='user_id'/>
|
|
<field name='quantity'/>
|
|
<field name='cost'/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id='action_timesheet_user_stat' model='ir.actions.act_window'>
|
|
<field name='name'>Timesheet by user (this month)</field>
|
|
<field name='res_model'>report_timesheet.user</field>
|
|
<field name='view_type'>form</field>
|
|
<field name='view_mode'>graph,tree</field>
|
|
<field name='domain'>[('name','>=',time.strftime('%Y-%m-01'))]</field>
|
|
</record>
|
|
<menuitem name='Human Resources/Reporting/This Month/Timesheet by User' action='action_timesheet_user_stat' id='menu_report_timesheet_user'/>
|
|
|
|
<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 type='bar' orientation='horizontal' string='Daily timesheet per account'>
|
|
<field name='name'/>
|
|
<field name='quantity' operator='+'/>
|
|
<field name='account_id' group='True'/>
|
|
</graph>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
|
|
<record id='action_timesheet_user_stat_my' model='ir.actions.act_window'>
|
|
<field name='name'>My Timesheet of the Month</field>
|
|
<field name='res_model'>report_timesheet.account.date</field>
|
|
<field name='view_type'>form</field>
|
|
<field name='view_mode'>graph,tree</field>
|
|
<field name='view_id' ref='view_timesheet_account_date_graph_account'/>
|
|
<field name='domain'>[('name','>=',time.strftime('%Y-%m-01')), ('user_id','=',uid)]</field>
|
|
</record>
|
|
<menuitem name='Human Resources/Reporting/This Month/' action='action_timesheet_user_stat_my' id='menu_report_timesheet_user_my'/>
|
|
|
|
|
|
<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>
|
|
</record>
|
|
<menuitem name='Human Resources/Reporting/All Months/Timesheet by User' action='action_timesheet_user_stat_all' id='menu_report_timesheet_user_all'/>
|
|
|
|
<!-- Statistics report on timesheets to invoice -->
|
|
|
|
<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='+'/>
|
|
</graph>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<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'/>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<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'/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<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>
|
|
</record>
|
|
<menuitem name='Human Resources/Reporting/All Months/Timesheet by Invoice' action='action_timesheet_invoice_stat_all' id='menu_report_timesheet_invoice_all'/>
|
|
|
|
<record id='action_timesheet_invoice_stat_my' model='ir.actions.act_window'>
|
|
<field name='name'>My timesheets to invoice</field>
|
|
<field name='res_model'>report_timesheet.invoice</field>
|
|
<field name='view_type'>form</field>
|
|
<field name='view_mode'>graph,tree</field>
|
|
<field name='domain'>[('manager_id','=',uid)]</field>
|
|
</record>
|
|
<menuitem name='Human Resources/Reporting/This Month/My Timesheets to Invoice' action='action_timesheet_invoice_stat_my' id='menu_report_timesheet_invoice_my'/>
|
|
|
|
<!-- Statistics report on daily timesheets per account -->
|
|
|
|
<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'/>
|
|
<field name='account_id'/>
|
|
<field name='user_id'/>
|
|
<field name='quantity'/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<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 name='user_id' group='True'/>
|
|
</graph>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<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'/>
|
|
<field name='account_id' select='1'/>
|
|
<field name='user_id' select='1'/>
|
|
<field name='quantity'/>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id='action_timesheet_account_date_stat_all' model='ir.actions.act_window'>
|
|
<field name='name'>Daily Timesheet by Account</field>
|
|
<field name='res_model'>report_timesheet.account.date</field>
|
|
<field name='view_type'>form</field>
|
|
<field name='view_mode'>graph,tree</field>
|
|
</record>
|
|
<menuitem name='Human Resources/Reporting/All Months/Daily Timesheet by Account' action='action_timesheet_account_date_stat_all' id='menu_report_timesheet_account_date_all'/>
|
|
|
|
<record id='action_timesheet_account_date_stat_my' model='ir.actions.act_window'>
|
|
<field name='name'>My daily timesheets by account</field>
|
|
<field name='res_model'>report_timesheet.account.date</field>
|
|
<field name='view_type'>form</field>
|
|
<field name='view_mode'>graph,tree</field>
|
|
<field name='domain'>[('user_id','=',uid)]</field>
|
|
</record>
|
|
<menuitem name='Human Resources/Reporting/This Month/My Daily Timesheets by Account' action='action_timesheet_account_date_stat_my' id='menu_report_timesheet_account_date_my'/>
|
|
|
|
<!-- Statistics report on timesheets per account -->
|
|
|
|
<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'/>
|
|
<field name='account_id'/>
|
|
<field name='user_id'/>
|
|
<field name='quantity'/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<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 name='user_id' group='True'/>
|
|
</graph>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
|
|
<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'/>
|
|
<field name='account_id' select='1'/>
|
|
<field name='user_id' select='1'/>
|
|
<field name='quantity'/>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id='action_timesheet_account_stat_all' model='ir.actions.act_window'>
|
|
<field name='name'>Timesheet by Account</field>
|
|
<field name='res_model'>report_timesheet.account</field>
|
|
<field name='view_type'>form</field>
|
|
<field name='view_mode'>graph,tree</field>
|
|
</record>
|
|
<menuitem name='Human Resources/Reporting/All Months/Timesheet by Account' action='action_timesheet_account_stat_all' id='menu_report_timesheet_account_all'/>
|
|
|
|
<record id='action_timesheet_account_stat_my' model='ir.actions.act_window'>
|
|
<field name='name'>My timesheets by account</field>
|
|
<field name='res_model'>report_timesheet.account</field>
|
|
<field name='view_type'>form</field>
|
|
<field name='view_mode'>graph,tree</field>
|
|
<field name='domain'>[('user_id','=',uid)]</field>
|
|
</record>
|
|
<menuitem name='Human Resources/Reporting/This Month/My Timesheets by Account' action='action_timesheet_account_stat_my' id='menu_report_timesheet_account_my'/>
|
|
|
|
<act_window name='Timesheets per day' domain='[('user_id', '=', active_id)]' id='act_res_users_2_report_timesheet_user' src_model='res.users' res_model='report_timesheet.user'/>
|
|
|
|
<act_window name='Timesheets per account' domain='[('user_id', '=', active_id)]' id='act_res_users_2_report_timehsheet_account' src_model='res.users' res_model='report_timesheet.account'/>
|
|
|
|
<act_window name='Timesheets' domain='[('account_id', '=', active_id)]' id='act_account_analytic_account_2_report_timehsheet_account' src_model='account.analytic.account' res_model='report_timesheet.account'/>
|
|
|
|
<act_window name='Costs to invoice' domain='[('manager_id', '=', active_id)]' id='act_res_users_2_report_timesheet.invoice' src_model='res.users' res_model='report_timesheet.invoice'/>
|
|
|
|
</data>
|
|
</terp>
|