<?xml version="1.0"?>
<data><div name="button_box" position="inside">
                <field name="display_sale_order_button" invisible="1"/>
                <field name="allow_billable" invisible="1"/>
                <button class="oe_stat_button" type="object" name="action_project_sharing_view_so" icon="fa-dollar" invisible="not display_sale_order_button">
                        <div class="o_stat_info">
                            <span class="o_stat_text">Sales Order</span>
                        </div>
                </button>
            </div>
            <xpath expr="//field[@name='partner_id']" position="attributes">
                <attribute name="invisible">not allow_billable</attribute>
            </xpath>
            <xpath expr="//field[@name='partner_id']" position="after">
                <field name="sale_line_id" string="Sales Order Item" options="{&quot;no_open&quot;: True}" readonly="1" invisible="not partner_id" context="{'create': False, 'edit': False, 'delete': False}"/>
            </xpath>
            <xpath expr="//field[@name='child_ids']/list/field[@name='partner_id']" position="after">
                <field name="allow_billable" column_invisible="1"/>
            </xpath>
            <xpath expr="//field[@name='depend_on_ids']/list/field[@name='partner_id']" position="after">
                <field name="allow_billable" column_invisible="1"/>
            </xpath>
            <xpath expr="//field[@name='child_ids']/list/field[@name='partner_id']" position="attributes">
                <attribute name="column_invisible">not parent.allow_billable</attribute>
                <attribute name="invisible">not allow_billable</attribute>
            </xpath>
            <xpath expr="//field[@name='depend_on_ids']/list/field[@name='partner_id']" position="attributes">
                <attribute name="column_invisible">not parent.allow_billable</attribute>
                <attribute name="invisible">not allow_billable</attribute>
            </xpath>
        </data>