<?xml version="1.0" encoding="utf-8" ?>
<odoo>
    <record id="view_rma_add_lines_form" model="ir.ui.view">
        <field name="name">view.rma.add.lines.form</field>
        <field name="model">rma.picking.make.lines</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form>
                <field name="line_ids">
                    <tree editable="top" create="false" delete="false">
                        <field name="product_id" readonly="1"/>
                        <field name="qty_ordered" readonly="1"/>
                        <field name="qty_delivered" readonly="1"/>
                        <field name="product_uom_qty"/>
                        <field name="product_uom_id" readonly="1"/>
                    </tree>
                </field>
                <footer>
                    <button class="oe_highlight"
                            name="add_lines"
                            type="object"
                            string="Add" />
                    <button class="oe_link"
                            special="cancel"
                            string="Cancel" />
                </footer>
            </form>
        </field>
    </record>
     <record id="action_rma_add_lines" model="ir.actions.act_window">
        <field name="name">Add RMA Lines</field>
        <field name="res_model">rma.picking.make.lines</field>
        <field name="view_type">form</field>
        <field name="view_mode">form</field>
        <field name="view_id" ref="view_rma_add_lines_form" />
        <field name="target">new</field>
    </record>
</odoo>