<?xml version="1.0"?>
<data>
                    <xpath expr="//field[@name='amount']" position="after">
                        <field name="ref"/>
                        <field name="partner_id"/>
                    </xpath>
                    <xpath expr="//field[@name='product_uom_id']" position="before">
                        <field name="product_id"/>
                    </xpath>
                    <group name="amount" position="after">
                        <group/> <!-- put Accounting group under Amount group -->
                        <group name="accounting" string="Accounting">
                            <field name="move_line_id" options="{'no_create': True}" widget="line_open_move_widget"/>
                            <field name="general_account_id" attrs="{'readonly': [('move_line_id', '!=', False)]}"/>
                        </group>
                    </group>
                </data>
            