<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
         <act_window name="Return Shipment"
            res_model="stock.return.picking"
            src_model="stock.picking"
            view_mode="form"
            target="new"
            key2="client_action_multi"
            multi="True"
            id="act_stock_return_picking"/>
         <act_window name="Return Shipment"
            res_model="stock.return.picking"
            src_model="stock.picking.in"
            view_mode="form"
            target="new"
            key2="client_action_multi"
            multi="True"
            id="act_stock_return_picking_in"/>
         <act_window name="Return Shipment"
            res_model="stock.return.picking"
            src_model="stock.picking.out"
            view_mode="form"
            target="new"
            key2="client_action_multi"
            multi="True"
            id="act_stock_return_picking_out"/>

        <record id="stock_return_memory_tree_in" model="ir.ui.view">
            <field name="name">stock.return.picking.memory.tree</field>
            <field name="model">stock.return.picking.memory</field>
            <field name="arch" type="xml">
                <tree editable="bottom" string="Product Moves">
                    <field name="product_id" />
                    <field name="prodlot_id" groups="stock.group_production_lot"/>
                    <field name="quantity" />
                </tree>
            </field>
        </record>
        
        <record id="stock_return_memory_form_in" model="ir.ui.view">
            <field name="name">stock.return.picking.memory.from</field>
            <field name="model">stock.return.picking.memory</field>
            <field name="arch" type="xml">
                <form string="Return Picking Memory" version="7.0">
                    <group col="4">
                        <field name="product_id" />
                        <field name="prodlot_id" groups="stock.group_production_lot"/>
                        <field name="quantity" />
                    </group>
                 </form>
            </field>
        </record>   

        <record id="view_stock_return_picking_form" model="ir.ui.view">
            <field name="name">Return lines</field>
            <field name="model">stock.return.picking</field>
            <field name="arch" type="xml">
                <form string="Return lines" version="7.0">
                    <label string="Provide the quantities of the returned products."/>
                    <group>
                        <field name="product_return_moves"/>
                        <field name="invoice_state" />
                    </group>
                    <footer>
                        <button name="create_returns" string="Return" type="object" class="oe_highlight"/>
                        or
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
                </form>
            </field>
        </record>
        
    </data>
</openerp>
