<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <record id="template_missing_item" model="rma.template">
        <field name="name">Missing Item</field>
        <field name="valid_days" eval="10"/>
        <field name="create_out_picking" eval="True"/>
        <field name="out_type_id" ref="stock.picking_type_out"/>
        <field name="out_location_id" ref="stock.stock_location_stock"/>
        <field name="out_location_dest_id" ref="stock.stock_location_customers"/>
        <field name="out_procure_method">make_to_stock</field>
    </record>

    <record id="rma_return_sequence" model="ir.sequence">
        <field name="name">RMA Returns</field>
        <field name="implementation">standard</field>
        <field name="prefix">WH/RMA/</field>
        <field name="padding" eval="5"/>
        <field name="number_increment" eval="1"/>
    </record>

    <record id="picking_type_rma_return" model="stock.picking.type">
        <field name="name">RMA Receipts</field>
        <field name="sequence_code">WH/RMA</field>
        <field name="sequence_id" ref="rma_return_sequence"/>
        <field name="warehouse_id" ref="stock.warehouse0"/>
        <field name="code">incoming</field>
        <field name="show_operations" eval="False"/>
        <field name="show_reserved" eval="True"/>
        <field name="use_create_lots" eval="False"/>
        <field name="use_existing_lots" eval="True"/>
        <field name="default_location_dest_id" ref="stock.stock_location_stock"/>
    </record>

    <record id="template_picking_return" model="rma.template">
        <field name="name">Picking Return</field>
        <field name="usage">stock_picking</field>
        <field name="valid_days" eval="10"/>
        <field name="create_in_picking" eval="True"/>
        <field name="in_type_id" ref="picking_type_rma_return"/>
        <field name="in_location_id" ref="stock.stock_location_customers"/>
        <field name="in_location_dest_id" ref="stock.stock_location_stock"/>
        <field name="in_procure_method">make_to_stock</field>
        <field name="in_require_return" eval="True"/>
    </record>

    <record id="template_rtv" model="rma.template">
        <field name="name">Return To Vendor</field>
        <field name="create_out_picking" eval="True"/>
        <field name="out_type_id" ref="stock.picking_type_out"/>
        <field name="out_location_id" ref="stock.stock_location_stock"/>
        <field name="out_location_dest_id" ref="stock.stock_location_suppliers"/>
        <field name="out_procure_method">make_to_stock</field>
        <field name="invoice_done" eval="True"/>
    </record>

</odoo>