[ADD]: Add graph view for hr evaluation object and removed report menu from hr_timesh...
authorrch (Open ERP) <>
Wed, 14 Apr 2010 13:07:56 +0000 (18:37 +0530)
committerrch (Open ERP) <>
Wed, 14 Apr 2010 13:07:56 +0000 (18:37 +0530)
bzr revid: rch_open_erp-20100414130756-wiuxjgad6q6juutt

addons/hr_evaluation/hr_evaluation_view.xml
addons/hr_timesheet_invoice/report/hr_timesheet_invoice_report_view.xml

index 4f16eb6..4f529d5 100644 (file)
                 </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>
         <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
index cdc89ac..6dd8dfc 100644 (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"/>
             <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 -->
 
             <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 -->
 
             <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 -->
 
             <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"/>