<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <record id="view_change_product_quantity" model="ir.ui.view">
            <field name="name">Change Product Quantity</field>
            <field name="model">stock.change.product.qty</field>
            <field name="arch" type="xml">
                <form string="Update Product Quantity" version="7.0">
                    <group>
                        <field name="new_quantity" />
                        <field name="product_id" invisible="1"/>
                        <field name="location_id" groups="stock.group_locations"/>
                        <field name="prodlot_id"  context="{'search_default_product_id':product_id,'default_product_id':product_id}" groups="stock.group_production_lot"/>
                    </group>
                    <footer>
                        <button name="change_product_qty" string="_Apply" type="object" class="oe_highlight"/>
                        or
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
                </form>
            </field>
        </record>

        <record id="action_view_change_product_quantity" model="ir.actions.act_window">
            <field name="name">Update Product Quantity</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">stock.change.product.qty</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_change_product_quantity"/>
            <field name="target">new</field>
        </record>

    </data>
</openerp>

