<?xml version="1.0"?>
<openerp>
    <data>

        <!-- add picking to wave  -->
        <record model="ir.ui.view" id="picking_to_wave_form">
            <field name="name">stock.picking.to.wave.form</field>
            <field name="model">stock.picking.to.wave</field>
            <field name="arch" type="xml">
                <form string="Add pickings to wave">
                    <separator string="Select a wave"/>
                    <field name="wave_id" class="oe_inline"/>
                    <footer>
                        <button name="attach_pickings" type="object" string="Add to wave" class="oe_highlight"/>
                        or
                        <button string="Cancel" class="oe_link" special="cancel"/>
                    </footer>
                </form>
            </field>
        </record>

        <!--  add picking to wave action -->
        <record model="ir.actions.act_window" id="picking_to_wave_act">
            <field name="name">Add to Wave</field>
            <field name="res_model">stock.picking.to.wave</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="picking_to_wave_form"/>
            <field name="target">new</field>
        </record>

        <act_window id="action_picking_to_wave"
            multi="True"
            key2="client_action_multi" name="Add to Wave"
            res_model="stock.picking.to.wave" src_model="stock.picking"
            view_mode="form" target="new" view_type="form"
            />

    </data>
</openerp>