<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2020 Escodoo
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
    <record model="ir.ui.view" id="product_template_form_view">
        <field name="name">product.template.form (in hr_employee_ppe)</field>
        <field name="model">product.template</field>
        <field name="inherit_id" ref="product.product_template_form_view" />
        <field name="arch" type="xml">
            <page name="personal_equipment" position="inside">
                <group string="Employee PPE">
                    <field
                        name="is_ppe"
                        string="Is PPE"
                        attrs="{'invisible': [('is_personal_equipment', '=', False)]}"
                    />
                    <field
                        name="indications"
                        string="PPE Indications"
                        attrs="{'invisible': [('is_ppe', '=', False)]}"
                    />
                    <field
                        name="expirable_ppe"
                        attrs="{'invisible': [('is_ppe', '=', False)]}"
                    />
                    <field
                        name="ppe_duration"
                        string="PPE Duration"
                        attrs="{'invisible': [('expirable_ppe', '=', False)], 'required': [('expirable_ppe', '!=', False)]}"
                    />
                    <field
                        name="ppe_interval_type"
                        string="PPE Interval Type"
                        attrs="{'invisible': [('expirable_ppe', '=', False)], 'required': [('expirable_ppe', '!=', False)]}"
                    />
                </group>
            </page>
        </field>
    </record>
</odoo>
