[ADD]: Add graph view for hr evaluation object and removed report menu from hr_timesheet_invoice.

bzr revid: rch_open_erp-20100414130756-wiuxjgad6q6juutt
This commit is contained in:
rch (Open ERP) 2010-04-14 18:37:56 +05:30
parent 23012353ee
commit c24bff8a69
2 changed files with 18 additions and 7 deletions

View File

@ -202,7 +202,17 @@
</tree>
</field>
</record>
<record model="ir.ui.view" id="view_hr_evaluation_graph">
<field name="name">hr_evaluation.evaluation.graph</field>
<field name="model">hr_evaluation.evaluation</field>
<field name="type">graph</field>
<field name="arch" type="xml">
<graph string="Evaluation" type="bar">
<field name="employee_id"/>
<field name="progress" operator="+"/>
</graph>
</field>
</record>
<record id="hr_evaluation.evaluation_search" model="ir.ui.view">
<field name="name">hr_evaluation.evaluation_search</field>
<field name="model">hr_evaluation.evaluation</field>
@ -242,7 +252,7 @@
<record model="ir.actions.act_window" id="open_view_hr_evaluation_tree">
<field name="res_model">hr_evaluation.evaluation</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">tree,form,graph</field>
<field name="search_view_id" ref="hr_evaluation.evaluation_search"/>
</record>
<menuitem

View File

@ -58,7 +58,7 @@
</group>
<newline/>
<group expand="1" string="Group By..." colspan="10" col="12">
<filter string="User" icon="terp-hr" context="{'group_by':'user_id'}"/>
<filter string="User" name="User" icon="terp-hr" context="{'group_by':'user_id'}"/>
<filter string="Account" icon="terp-hr" context="{'group_by':'account_id'}"/>
<filter string="Product" icon="terp-hr" context="{'group_by':'product_id'}"/>
<separator orientation="vertical"/>
@ -74,6 +74,7 @@
<field name="res_model">report.timesheet.line</field>
<field name="view_type">form</field>
<field name="view_mode">tree,graph</field>
<field name="context">{'search_default_User': 1}</field>
<field name="search_view_id" ref="view_timesheet_line_search"/>
</record>
<menuitem action="action_timesheet_line_stat_all" id="menu_report_timesheet_line_all" parent="hr.menu_hr_reporting"/>
@ -162,7 +163,7 @@
<field name="view_mode">graph,tree</field>
<field name="search_view_id" ref="view_timesheet_user_search"/>
</record>
<menuitem action="action_timesheet_user_stat_all" id="menu_report_timesheet_user_all" parent="hr.menu_hr_reporting"/>
<!-- <menuitem action="action_timesheet_user_stat_all" id="menu_report_timesheet_user_all" parent="hr.menu_hr_reporting"/> -->
<!-- Statistics report on timesheets to invoice -->
@ -228,7 +229,7 @@
<field name="view_mode">graph,tree</field>
<field name="search_view_id" ref="view_timesheet_invoice_search"/>
</record>
<menuitem action="action_timesheet_invoice_stat_all" id="menu_report_timesheet_invoice_all" parent="hr.menu_hr_reporting"/>
<!-- <menuitem action="action_timesheet_invoice_stat_all" id="menu_report_timesheet_invoice_all" parent="hr.menu_hr_reporting"/> -->
<!-- Statistics report on daily timesheets per account -->
@ -302,7 +303,7 @@
<field name="view_mode">graph,tree</field>
<field name="search_view_id" ref="view_timesheet_account_date_search"/>
</record>
<menuitem action="action_timesheet_account_date_stat_all" id="menu_report_timesheet_account_date_all" parent="hr.menu_hr_reporting"/>
<!-- <menuitem action="action_timesheet_account_date_stat_all" id="menu_report_timesheet_account_date_all" parent="hr.menu_hr_reporting"/>-->
<!-- Statistics report on timesheets per account -->
@ -377,7 +378,7 @@
<field name="view_mode">graph,tree</field>
<field name="search_view_id" ref="view_timesheet_account_search"/>
</record>
<menuitem action="action_timesheet_account_stat_all" id="menu_report_timesheet_account_all" parent="hr.menu_hr_reporting"/>
<!-- <menuitem action="action_timesheet_account_stat_all" id="menu_report_timesheet_account_all" parent="hr.menu_hr_reporting"/> -->
<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"/>