<?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_stock_move_operations" model="ir.ui.view">
        <field name="name">product_expiry_simple.stock.move.form</field>
        <field name="model">stock.move</field>
        <field name="inherit_id" ref="stock.view_stock_move_operations" />
        <field name="arch" type="xml">
            <field name="next_serial" position="after">
                <field name="product_use_expiry_date" invisible="1" />
                <field
                    name="serial_expiry_date"
                    attrs="{'invisible': ['|', ('display_assign_serial', '=', False), ('product_use_expiry_date', '=', False)]}"
                />
            </field>
        </field>
    </record>

</odoo>
