<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
@author: Quentin DUPONT (quentin.dupont@grap.coop)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>
    <!-- Product Template -->
    <record id="view_mrp_product_produce_delay_in_hour" model="ir.ui.view">
        <field name="model">product.template</field>
        <field name="inherit_id" ref="stock.view_template_property_form" />
        <field name="arch" type="xml">
            <xpath expr="//label[@for='produce_delay']" position="before">
                <label
                    for="produce_delay_in_hour"
                    string="Manuf. Lead Time"
                    attrs="{'invisible':[('type','=','service')]}"
                />
                <div attrs="{'invisible':[('type','=','service')]}">
                    <field
                        name="produce_delay_in_hour"
                        widget="float_time"
                        class="oe_inline"
                    /> hours
                </div>
            </xpath>
            <xpath expr="//field[@name='produce_delay']" position="attributes">
                <attribute name="readonly">1</attribute>
                <attribute name="force_save">1</attribute>
            </xpath>
        </field>
    </record>
</odoo>
