<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
           <record id="view_stock_fill_inventory" model="ir.ui.view">
            <field name="name">Import Inventory</field>
            <field name="model">stock.fill.inventory</field>
            <field name="arch" type="xml">
              <form string="Import Inventory" version="7.0">
                  <separator string="Import the current inventory"/>
                  <group>
                      <field name="location_id" groups="stock.group_locations"/>
                      <field name="recursive" groups="stock.group_locations"/>
                      <field name="set_stock_zero"/>
                  </group>
                  <footer>
                      <button name="fill_inventory" string="Fill Inventory" type="object" class="oe_highlight"/>
                      or
                      <button string="Cancel" class="oe_link" special="cancel" />
                  </footer>
              </form>
            </field>
        </record>

        <record id="action_view_stock_fill_inventory" model="ir.actions.act_window">
            <field name="name">Fill Inventory</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">stock.fill.inventory</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_stock_fill_inventory"/>
            <field name="target">new</field>
            <field name="context">{'search_default_in_location':1}</field>
        </record>
            
    </data>
</openerp>
