<?xml version="1.0" encoding="utf-8" ?>
<odoo>

    <record id="purchase_order_form_inerit" model="ir.ui.view">
        <field name="name">purchase.order.form.inherit</field>
        <field name="model">purchase.order</field>
        <field name="inherit_id" ref="purchase.purchase_order_form" />
        <field name="arch" type="xml">
            <xpath
                expr="//field[@name='order_line']//tree//field[@name='price_unit']"
                position="before"
            >
                <field name="transport_qty" optional="hide" />
            </xpath>
            <xpath expr="//field[@name='tax_totals']" position="after">
                <label
                    for="total_transport_qty"
                    attrs="{'invisible': [('total_transport_qty', '=', False)]}"
                />
                <div class="text-nowrap">
                    <field
                        name="total_transport_qty"
                        class="oe_inline"
                        attrs="{'invisible': [('total_transport_qty', '=', False)]}"
                    />
                    <!-- <span style="margin-left:3px;"><field
                        name="transport_packaging_level_code"
                        class="oe_inline"
                    /></span> -->
                </div>
            </xpath>
        </field>
    </record>
</odoo>
