<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <!--
      Copyright (C) 2018 Brainbean Apps (https://brainbeanapps.com)
      License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
    -->
    <record id="hr_employee_view_form" model="ir.ui.view">
        <field name="name">hr.employee.view.form.inherit.relatives</field>
        <field name="model">hr.employee</field>
        <field name="inherit_id" ref="hr.view_employee_form" />
        <field name="arch" type="xml">
            <field name="spouse_complete_name" position="attributes">
                <attribute name="invisible">1</attribute>
            </field>
            <field name="spouse_birthdate" position="attributes">
                <attribute name="invisible">1</attribute>
            </field>
            <field name="children" position="attributes">
                <attribute name="invisible">1</attribute>
            </field>
            <xpath expr="//notebook" position="inside">
                <page string="Relatives" groups="hr.group_hr_user">
                    <field name="relative_ids" nolabel="1" />
                </page>
            </xpath>
        </field>
    </record>
</odoo>
