You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2014 Akretion (http://www.akretion.com/)
  4. @author: Alexis de Lattre <alexis.delattre@akretion.com>
  5. The licence is in the file __openerp__.py
  6. -->
  7. <openerp>
  8. <data>
  9. <record id="better_zip_geonames_import_form" model="ir.ui.view">
  10. <field name="name">asterisk.server.company</field>
  11. <field name="model">better.zip.geonames.import</field>
  12. <field name="arch" type="xml">
  13. <form string="Import Geonames" version="7.0">
  14. <group name="main">
  15. <label string="This wizard will delete all the better zip entries for the selected country, download the latest version from geonames.org for that country and create new better zip entries."
  16. colspan="2" name="import-help"/>
  17. <field name="country_id"/>
  18. </group>
  19. <footer>
  20. <button name="run_import" type="object"
  21. class="oe_highlight" string="Import"/>
  22. <button special="cancel" string="Cancel" class="oe_link"/>
  23. </footer>
  24. </form>
  25. </field>
  26. </record>
  27. <record id="better_zip_geonames_import_action" model="ir.actions.act_window">
  28. <field name="name">Import Geonames</field>
  29. <field name="res_model">better.zip.geonames.import</field>
  30. <field name="view_type">form</field>
  31. <field name="view_mode">form</field>
  32. <field name="target">new</field>
  33. </record>
  34. <menuitem id="better_zip_geonames_import_menu"
  35. action="better_zip_geonames_import_action"
  36. parent="base.menu_localisation"
  37. sequence="50"/>
  38. </data>
  39. </openerp>