| 1 |
<odoo> |
| 2 |
<!--Hr Department Inherit Kanban view--> |
| 3 |
<record id="hr_department_view_kanban" model="ir.ui.view"> |
| 4 |
<field name="name">hr.department.kanban.inherit</field> |
| 5 |
<field name="model">hr.department</field> |
| 6 |
<field name="inherit_id" ref="hr.hr_department_view_kanban"/> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<data> |
| 9 |
<xpath expr="//div[@name='kanban_primary_right']" position="inside"> |
| 10 |
<div t-if="record.new_applicant_count.raw_value > 0" class="row g-0 ml32" groups="hr_recruitment.group_hr_recruitment_user"> |
| 11 |
<a name="%(hr_applicant_action_from_department)d" class="col" type="action"> |
| 12 |
<field name="new_applicant_count"/> New Applicants |
| 13 |
</a> |
| 14 |
</div> |
| 15 |
</xpath> |
| 16 |
|
| 17 |
<xpath expr="//div[hasclass('o_kanban_manage_reports')]" position="inside"> |
| 18 |
<div role="menuitem"> |
| 19 |
<a class="dropdown-item" name="%(action_hr_recruitment_report_filtered_department)d" |
| 20 |
type="action" groups="hr_recruitment.group_hr_recruitment_interviewer"> |
| 21 |
Recruitment |
| 22 |
</a> |
| 23 |
</div> |
| 24 |
</xpath> |
| 25 |
</data> |
| 26 |
</field> |
| 27 |
</record> |
| 28 |
|
| 29 |
<record id="action_hr_department" model="ir.actions.act_window"> |
| 30 |
<field name="name">Departments</field> |
| 31 |
<field name="res_model">hr.department</field> |
| 32 |
<field name="view_mode">list,form</field> |
| 33 |
</record> |
| 34 |
</odoo> |