<data><field name="partner_id" position="after">
                <field name="sale_order_id" filter_domain="['|', ('sale_order_id', 'ilike', self), ('sale_line_id', 'ilike', self)]"/>
            </field>
            <field name="partner_id" position="attributes">
                <attribute name="invisible">context.get('hide_partner')</attribute>
            </field>
            <filter name="customer" position="attributes">
                <attribute name="invisible">context.get('hide_partner')</attribute>
            </filter>
        </data>