import_inventory_view.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Import Inventory Wizard form -->
  5. <record id="view_import_inventory" model="ir.ui.view">
  6. <field name="name">import.inventory.form</field>
  7. <field name="model">import.inventory</field>
  8. <field name="type">form</field>
  9. <field name="arch" type="xml">
  10. <form string="Import Inventory">
  11. <label string="The file must have 2 column keys:
  12. 'code' => for product reference
  13. 'quantity' => for product quantity" colspan="4"/>
  14. <group colspan="4" col="4">
  15. <field name="name" />
  16. <field name="delimeter"/>
  17. <field name="data" filename="name" colspan="4" />
  18. <field name="location" colspan="4"/>
  19. </group>
  20. <separator string="" colspan="4"/>
  21. <footer>
  22. <button class="oe_highlight" special="cancel" string="Cancel"/>
  23. <button name="action_import" string="Import" type="object"/>
  24. </footer>
  25. </form>
  26. </field>
  27. </record>
  28. <!-- Action of Import inventory wizard -->
  29. <record id="action_import_inventory" model="ir.actions.act_window">
  30. <field name="name">Import Inventory</field>
  31. <field name="res_model">import.inventory</field>
  32. <field name="view_type">form</field>
  33. <field name="view_mode">tree,form</field>
  34. <field name="view_id" ref="view_import_inventory"/>
  35. <field name="target">new</field>
  36. </record>
  37. <!-- <menuitem id="menu_import_inventory" name="Import Inventory" action="action_import_inventory" parent="stock.menu_stock_inventory_control"/> -->
  38. </data>
  39. </openerp>