[IMP] hr: Add empty header for view inheritance

Some modules might want to add buttons in the form header of the employee public
(e.g. hr_appraisal).
This commit adds an empty header to easily allow view inheritance.

Note: this empty header is not displayed if no buttons are indide.

Task 2028794
PR odoo/enterprise#6495

closes odoo/odoo#39565

Related: odoo/enterprise#6495
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Lucas Lefèvre
2019-11-25 15:46:38 +00:00
parent 1c47f2070b
commit 25dc18bb09
@@ -31,6 +31,7 @@
<field name="model">hr.employee.public</field>
<field name="arch" type="xml">
<form string="Employee" create="0" write="0">
<header/>
<sheet>
<field name="user_id" invisible="1"/>
<field name="active" invisible="1"/>