[MERGE] merge with latest stable
[odoo/odoo.git] / addons / hr_recruitment / board_hr_recruitment_statistical_view.xml
index 14710cf..fee3e4e 100644 (file)
@@ -2,5 +2,49 @@
 <openerp>
     <data>
 
+    <record id="view_applicants_status_tree" model="ir.ui.view">
+        <field name="name">applicants.status.tree</field>
+        <field name="model">hr.applicant</field>
+        <field name="type">tree</field>
+        <field name="arch" type="xml">
+            <tree colors="blue:state in ('draft');black:state in ('open','pending','done','cancel');" string="Applicants Status">
+                <field name="create_date"/>
+                <field name="job_id"/>
+                <field name="partner_name"/>
+                <field name="stage_id"/>
+                <field name="state"/>
+            </tree>
+        </field>
+    </record>
+
+    <record id="action_applicants_status" model="ir.actions.act_window">
+        <field name="name">Applicants Status</field>
+        <field name="type">ir.actions.act_window</field>
+        <field name="res_model">hr.applicant</field>
+        <field name="view_type">form</field>
+        <field name="view_mode">tree,form</field>
+        <field name="domain">[('state','in',('draft','open'))]</field>
+        <field name="view_id" ref="view_applicants_status_tree"/>
+    </record>
+
+    <record id="board_hr_applicants_status_form" model="ir.ui.view">
+        <field name="name">board.hr.applicants.status.form</field>
+        <field name="model">board.board</field>
+        <field name="inherit_id" ref="hr.board_hr_manager_form"/>
+        <field name="type">form</field>
+        <field name="arch" type="xml">
+          <xpath expr="/form/hpaned/child2" position="inside">
+            <action colspan="4" height="220" name="%(action_applicants_status)d" string="Applicants Status"/>
+          </xpath>
+        </field>
+    </record>
+    <menuitem id="base.menu_hr_dasboard" name="Dashboard" parent="hr.menu_hr_reporting" sequence="0"/>
+    <menuitem
+        action="hr.open_board_hr_manager"
+        icon="terp-graph"
+        id="base.menu_hr_manager"
+        parent="base.menu_hr_dasboard"
+        groups = "base.group_hr_manager"
+        sequence="5"/>
     </data>
 </openerp>