<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <!--  Consume, scrap move -->

        <record id="view_stock_move_consume_wizard" model="ir.ui.view">
            <field name="name">Consume Move</field>
            <field name="model">stock.move.consume</field>
            <field name="arch" type="xml">
                <form string="Consume Move">
                    <group string="Consume Products">
                        <field name="product_id" readonly="1"/>
                        <label for="product_qty"/>
                        <div>
                            <field name="product_qty" class="oe_inline"/>
                            <field name="product_uom" class="oe_inline" readonly="1" groups="product.group_uom"/>
                        </div>
                        <field name="restrict_lot_id" domain="[('product_id','=',product_id)]" groups="stock.group_production_lot"
                            context="{'default_product_id': product_id}"/>
                        <field name="location_id" groups="stock.group_locations"/>
                    </group>
                    <footer>
                        <button name="do_move_consume" string="Ok" type="object" class="oe_highlight"/>
                        or
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
                </form>
            </field>
        </record>

        <record id="move_consume" model="ir.actions.act_window">
            <field name="name">Consume Move</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">stock.move.consume</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

    </data>
</openerp>
