<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2023 ACSONE SA/NV
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>

    <record model="ir.ui.view" id="stock_picking_form_view">
        <field name="name">stock.picking.form (in stock_picking_volume)</field>
        <field name="model">stock.picking</field>
        <field name="inherit_id" ref="stock.view_picking_form" />
        <field name="arch" type="xml">
            <xpath expr="//group[@name='other_infos']" position="before">
                <group name='logistics_data' string="Logistics">
                    <label for="volume" />
                    <div>
                        <field name="volume" class="oe_inline" />
                        <field
                            name="volume_uom_name"
                            nolabel="1"
                            class="oe_inline"
                            style="margin-left:5px"
                        />
                    </div>
                </group>
            </xpath>
        </field>
    </record>

    <record model="ir.ui.view" id="stock_picking_tree_view">
        <field name="name">stock.picking.tree (in stock_picking_volume)</field>
        <field name="model">stock.picking</field>
        <field name="inherit_id" ref="stock.vpicktree" />
        <field name="arch" type="xml">
            <xpath expr="//field[@name='origin']" position="after">
                <field name="volume" optional="hide" />
                <field name="volume_uom_name" nolabel="1" optional="hide" />
            </xpath>
        </field>
    </record>

</odoo>
