<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <!-- Register Payment Wizard -->
    <record id="view_account_payment_from_invoices_inherit" model="ir.ui.view">
        <field name="name">account.register.payments.wizard.inherit</field>
        <field name="model">account.register.payments</field>
        <field name="inherit_id" ref="account.view_account_payment_from_invoices"/>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='amount']" position="after">
                <field name="account_analytic_id"/>
            </xpath>
        </field>
    </record>

    <!-- Account Payments -->
    <record id="view_account_payment_form_inherit" model="ir.ui.view">
        <field name="name">account.payment.form.inherit</field>
        <field name="model">account.payment</field>
        <field name="inherit_id" ref="account.view_account_payment_form"/>
        <field name="arch" type="xml">
            <xpath expr="//div[@name='amount_div']" position="after">
                <field name="account_analytic_id"/>
            </xpath>
        </field>
    </record>

    <record id="view_account_payment_tree_inherit" model="ir.ui.view">
        <field name="name">account.payment.tree.inherit</field>
        <field name="model">account.payment</field>
        <field name="inherit_id" ref="account.view_account_payment_tree"/>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='amount']" position="after">
                <field name="account_analytic_id"/>
            </xpath>
        </field>
    </record>

    <record id="view_account_supplier_payment_tree_inherit" model="ir.ui.view">
        <field name="name">account.supplier.payment.tree.inherit</field>
        <field name="model">account.payment</field>
        <field name="inherit_id" ref="account.view_account_supplier_payment_tree"/>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='amount']" position="after">
                <field name="account_analytic_id"/>
            </xpath>
        </field>
    </record>

</odoo>