<?xml version="1.0"?>
<data><xpath expr="//field[@name='task_id']" position="after">
                <field name="commercial_partner_id" invisible="1" groups="sales_team.group_sale_salesman"/>
                <field name="is_so_line_edited" invisible="1" groups="sales_team.group_sale_salesman"/>
                <field name="allow_billable" invisible="1" groups="sales_team.group_sale_salesman"/>
                <field name="sale_order_state" invisible="1"/>
                <label for="so_line" invisible="not allow_billable" groups="sales_team.group_sale_salesman"/>
                <div class="o_row" invisible="not allow_billable" groups="sales_team.group_sale_salesman">
                    <field name="so_line" widget="so_line_field" options="{&quot;no_create&quot;: True}" context="{'create': False, 'edit': False, 'delete': False, 'with_price_unit': True}" readonly="readonly_timesheet" placeholder="Non-billable"/>
                    <span class="fa fa-exclamation-triangle text-warning" title="The sales order associated with this timesheet entry has been cancelled." invisible="sale_order_state != 'cancel'"/>
                </div>
            </xpath>
            <xpath expr="//group" position="before">
                <t groups="sales_team.group_sale_salesman">
                    <field name="order_id" invisible="1"/>
                    <field name="timesheet_invoice_id" invisible="1"/>
                    <div class="oe_button_box" name="button_box">
                        <button name="action_sale_order_from_timesheet" type="object" class="oe_stat_button" icon="fa-dollar" invisible="not order_id">
                            <div class="o_stat_info">
                                <span class="o_stat_text">Sales Order</span>
                            </div>
                        </button>
                        <button name="action_invoice_from_timesheet" type="object" class="oe_stat_button" icon="fa-pencil-square-o" invisible="not timesheet_invoice_id">
                            <div class="o_stat_info">
                                <span class="o_stat_text">Invoice</span>
                            </div>
                        </button>
                    </div>
                </t>
            </xpath>
        </data>