<?xml version="1.0"?>
<data><div name="button_box" position="inside">
                <field name="display_sale_order_button" invisible="1"/>
                <button class="oe_stat_button" type="object" name="action_project_sharing_view_so" icon="fa-dollar" attrs="{'invisible': [('display_sale_order_button', '=', False)]}" string="Sales Order"/>
            </div>
            <xpath expr="//field[@name='partner_id']" position="attributes">
                <attribute name="options">{'no_open': True, 'no_create': True, 'no_edit': True}</attribute>
                <attribute name="context">{'res_partner_search_mode': 'customer'}</attribute>
            </xpath>
            <xpath expr="//field[@name='partner_id']" position="after">
                <field name="commercial_partner_id" invisible="1"/>
                <field name="sale_line_id" string="Sales Order Item" attrs="{'invisible': [('partner_id', '=', False)]}" options="{&quot;no_open&quot;: True}" readonly="1" context="{'create': False, 'edit': False, 'delete': False}"/>
            </xpath>
        </data>