<?xml version="1.0" encoding="utf-8"?>
<odoo>
        <record id="view_order_form_inherit_product_min_max_qty" model="ir.ui.view">
                <field name="name">sale.order.form.product.min_max_qty</field>
                <field name="model">sale.order</field>
                <field name="inherit_id" ref="sale.view_order_form"/>
                <field name="arch" type="xml">
                        <xpath expr="//field[@name='order_line']/tree/field[@name='product_uom_qty']" position="before">
                                <field name="product_uom_ordered_qty" optional="hide"/>
                        </xpath>
                        <xpath expr="//field[@name='order_line']/tree/field[@name='product_uom_qty']" position="after">
                                <field name="product_uom_max_qty"/>
                        </xpath>
                </field>
        </record>
 </odoo>
