Files
odoo_source/addons/hr_org_chart/views/hr_views.xml
T
Kevin Baptiste 520ebd3c89 [FIX] hr_org_chart: reduce width on public profile
Prior to this commit, the org chart was taking 2/3 of the available
width. This commit aims at reducing the space used and to be consistent
with the private employee profile.

closes odoo/odoo#37052

Taskid: 2073361
Signed-off-by: Romain Libert (rli) <rli@odoo.com>
2019-09-18 08:21:38 +00:00

46 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="hr_employee_view_form_inherit_org_chart" model="ir.ui.view">
<field name="name">hr.employee.view.form.inherit.org_chart</field>
<field name="model">hr.employee</field>
<field name="inherit_id" ref="hr.view_employee_form"/>
<field name="arch" type="xml">
<div id="o_work_employee_main" position="after">
<div id="o_employee_right">
<h4 class="o_org_chart_title mb16 mt0">Organization Chart</h4>
<field name="child_ids" widget="hr_org_chart"/>
</div>
</div>
</field>
</record>
<record id="hr_employee_public_view_form_inherit_org_chart" model="ir.ui.view">
<field name="name">hr.employee.public.view.form.inherit.org_chart</field>
<field name="model">hr.employee.public</field>
<field name="inherit_id" ref="hr.hr_employee_public_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='o_work_employee_main']" position="after">
<div id="o_employee_right">
<h4 class="o_org_chart_title mb16 mt0">Organization Chart</h4>
<field name="child_ids" widget="hr_org_chart"/>
</div>
</xpath>
</field>
</record>
<record id="res_users_view_form" model="ir.ui.view">
<field name="name">res.users.preferences.view.form.inherit.org_chart</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="hr.res_users_view_form_profile"/>
<field name="arch" type="xml">
<div id="o_work_employee_main" position="after">
<div id="o_employee_right">
<field name="employee_ids" invisible="1"/>
<h4 class="o_org_chart_title mb16 mt0">Organization Chart</h4>
<field name="child_ids" widget="hr_org_chart"/>
</div>
</div>
</field>
</record>
</odoo>