<?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="view_picking_form" model="ir.ui.view">
        <field name="model">stock.picking</field>
        <field name="inherit_id" ref="stock.view_picking_form" />
        <field name="arch" type="xml">
            <field name="show_mark_as_todo" position="after">
                <field name="show_expiry_warning" invisible="1" />
            </field>
            <xpath expr="/form/sheet" position="before">
                <div
                    class="alert alert-warning"
                    role="alert"
                    attrs="{'invisible': [('show_expiry_warning', '=', False)]}"
                >
                        One or several products have <b>expired</b> lots
                </div>
            </xpath>
        </field>
    </record>
</odoo>
