[FIX] hr_org_chart: add icon in stat button to go to org chart view

task-3556262

Part-of: odoo/odoo#138803
This commit is contained in:
Xavier Bol (xbo)
2023-10-18 15:26:33 +00:00
parent 1f77fedbbf
commit e7360074e9
+1 -1
View File
@@ -25,7 +25,7 @@
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='button_box']" position="inside">
<button name="%(hr_org_chart.action_hr_employee_org_chart)d" string="Org Chart" type="action" context="{'hierarchy_res_id': id}" invisible="not parent_id and not child_ids"/>
<button name="%(hr_org_chart.action_hr_employee_org_chart)d" icon="fa-users" string="Org Chart" type="action" context="{'hierarchy_res_id': id}" invisible="not parent_id and not child_ids"/>
</xpath>
<div id="o_work_employee_main" position="after">
<div id="o_employee_right" class="col-lg-4 px-0 ps-lg-5 pe-lg-0">