<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2020 Tecnativa - Ernesto Tejeda
     License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
    <record id="rma_view_form" model="ir.ui.view">
        <field name="name">rma.view.form</field>
        <field name="model">rma</field>
        <field name="inherit_id" ref="rma.rma_view_form" />
        <field name="arch" type="xml">
            <field name="partner_invoice_id" position="after">
                <field
                    name="order_id"
                    options="{'no_create': True}"
                    attrs="{'readonly': [('state', '!=', 'draft')]}"
                />
            </field>
            <sheet>
                <field name="allowed_picking_ids" invisible="1" />
                <field name="allowed_move_ids" invisible="1" />
                <field name="allowed_product_ids" invisible="1" />
            </sheet>
        </field>
    </record>
</odoo>
