<odoo>
    <record id="view_picking_form" model="ir.ui.view">
        <field name="name">stock.picking.form</field>
        <field name="model">stock.picking</field>
        <field name="inherit_id" ref="stock.view_picking_form" />
        <field name="groups_id" eval="[(4, ref('purchase.group_purchase_user'))]" />
        <field name="arch" type="xml">
            <field name="origin" position="after">
                <field
                    name="subcontracting_purchase_order_id"
                    attrs="{'invisible': [('subcontracting_purchase_order_id', '=', False)]}"
                />
            </field>
        </field>
    </record>
</odoo>
