<?xml version="1.0" encoding="utf-8" ?>
<!--
  Copyright 2022 Akretion France (http://www.akretion.com/)
  @author: Alexis de Lattre <alexis.delattre@akretion.com>
  License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
    <record id="product_template_form_view" model="ir.ui.view">
        <field name="name">product_expiry_simple.product.template.form</field>
        <field name="model">product.template</field>
        <field name="inherit_id" ref="stock.view_template_property_form" />
        <field name="arch" type="xml">
            <field name="tracking" position="after">
                <field
                    name="use_expiry_date"
                    attrs="{'invisible': [('tracking', 'not in', ('lot', 'serial'))]}"
                />
            </field>
        </field>
    </record>

</odoo>
