<?xml version="1.0" encoding="utf-8" ?>
<!--
  Copyright 2024 Akretion France (https://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="view_assign_serial_numbers" model="ir.ui.view">
    <field name="model">stock.assign.serial</field>
    <field name="inherit_id" ref="stock.view_assign_serial_numbers" />
    <field name="arch" type="xml">
        <field name="next_serial_number" position="after">
            <field
                    name="serial_expiry_date"
                    attrs="{'invisible': [('product_use_expiry_date', '=', False)]}"
                />
            <field name="product_use_expiry_date" invisible="1" />
        </field>
    </field>
</record>


</odoo>
