<?xml version="1.0"?>
<xpath expr="//field[@name='analytic_distribution']" position="before">
                <field name="sale_order_id" groups="!sales_team.group_sale_salesman,!account.group_account_manager" attrs="{'invisible': [('can_be_reinvoiced', '=', False)], 'readonly': [('sheet_is_editable', '=', False)]}" options="{'no_create_edit': True, 'no_create': True, 'no_open': True}" context="{'sale_show_partner_name': True, 'sale_expense_all_order': True}" widget="sale_order_many2one"/>
                <field name="sale_order_id" groups="sales_team.group_sale_salesman,!account.group_account_manager" attrs="{'invisible': [('can_be_reinvoiced', '=', False)], 'readonly': [('sheet_is_editable', '=', False)]}" options="{'no_create_edit': True, 'no_create': True}" context="{'sale_show_partner_name': True, 'sale_expense_all_order': True}" widget="many2one"/>
                <field name="sale_order_id" groups="account.group_account_manager" widget="many2one" attrs="{'invisible':[['can_be_reinvoiced','=',False]],'readonly':['|', ['state','in',['done']], ['sheet_is_editable', '=', False]]}" options="{'no_create_edit': True, 'no_create': True, 'no_open': True}" context="{'sale_show_partner_name': True, 'sale_expense_all_order': True}"/>
                <field name="can_be_reinvoiced" invisible="1"/>
            </xpath>
        