<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

    <record id="view_move_form_rma" model="ir.ui.view">
        <field name="name">account.move.form.rma</field>
        <field name="model">account.move</field>
        <field name="inherit_id" ref="account.view_move_form"/>
        <field name="arch" type="xml">
            <xpath expr="//group[@name='accounting_info_group']" position="after">
                <group string="RMAs" name="rma" attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund'))]}">
                    <field name="rma_ids"/>
                </group>
            </xpath>
        </field>
    </record>

</odoo>