<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <!--
      Copyright 2020 Tecnativa - Víctor Martínez
      License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
    -->
    <record id="hr_employee_public_view_form" model="ir.ui.view">
        <field name="name">hr.employee.public.view.form.inherit.document</field>
        <field name="model">hr.employee.public</field>
        <field name="inherit_id" ref="hr.hr_employee_public_view_form" />
        <field name="arch" type="xml">
            <field name="user_id" position="after">
                <field name="is_logged" invisible="1" />
            </field>
            <div name="button_box" position="inside">
                <button
                    class="oe_stat_button"
                    icon="fa-book"
                    name="action_get_attachment_tree_view"
                    attrs="{'invisible': [('is_logged', '=', False)]}"
                    type="object"
                >
                    <field name="document_count" widget="statinfo" string="Documents" />
                </button>
            </div>
        </field>
    </record>
</odoo>
