-
Notifications
You must be signed in to change notification settings - Fork 0
/
hr_department_views.xml
46 lines (42 loc) · 2.04 KB
/
hr_department_views.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<odoo>
<!--Hr Department Inherit Kanban view-->
<record id="hr_department_view_kanban" model="ir.ui.view">
<field name="name">hr.department.kanban.inherit</field>
<field name="model">hr.department</field>
<field name="inherit_id" ref="hr.hr_department_view_kanban"/>
<field name="groups_id" eval="[(4,ref('hr_recruitment.group_hr_recruitment_user'))]"/>
<field name="arch" type="xml">
<data>
<xpath expr="//templates" position="before">
<field name="new_applicant_count"/>
<field name="new_hired_employee"/>
<field name="expected_employee"/>
</xpath>
<xpath expr="//div[hasclass('o_kanban_primary_right')]" position="inside">
<div t-if="record.new_applicant_count.raw_value > 0" class="row ml16">
<div class="col-9">
<a name="%(hr_applicant_action_from_department)d" type="action">
New Applicants
</a>
</div>
<div class="col-3 text-right">
<field name="new_applicant_count"/>
</div>
</div>
</xpath>
<xpath expr="//div[hasclass('o_kanban_manage_reports')]" position="inside">
<a role="menuitem" class="dropdown-item" name="%(action_hr_recruitment_report_filtered_department)d" type="action">
Recruitments
</a>
</xpath>
</data>
</field>
</record>
<record id="action_hr_department" model="ir.actions.act_window">
<field name="name">Departments</field>
<field name="res_model">hr.department</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="menu_hr_department" name="Departments"
parent="menu_hr_recruitment_configuration" action="action_hr_department"/>
</odoo>