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.

41 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="city_zip_geonames_import_form" model="ir.ui.view">
  4. <field name="name">Import from Geonames form view</field>
  5. <field name="model">city.zip.geonames.import</field>
  6. <field name="arch" type="xml">
  7. <form string="Import from Geonames">
  8. <group name="help">
  9. <div>
  10. <p>For the selected country, this wizard will download the latest version of the list of cities from <a href="http://www.geonames.org/">geonames.org</a>, create new location entries if not found already in the system, and <b>delete missing entries</b> from new file.</p>
  11. </div>
  12. </group>
  13. <group name="main">
  14. <field name="country_id"/>
  15. <field name="letter_case"/>
  16. </group>
  17. <footer>
  18. <button name="run_import" type="object"
  19. class="oe_highlight" string="Import"/>
  20. <button special="cancel" string="Cancel" class="oe_link"/>
  21. </footer>
  22. </form>
  23. </field>
  24. </record>
  25. <record id="city_zip_geonames_import_action" model="ir.actions.act_window">
  26. <field name="name">Import from Geonames</field>
  27. <field name="res_model">city.zip.geonames.import</field>
  28. <field name="view_mode">form</field>
  29. <field name="target">new</field>
  30. </record>
  31. <menuitem
  32. id="city_zip_geonames_import_menu"
  33. action="city_zip_geonames_import_action"
  34. parent="contacts.menu_localisation"
  35. sequence="50"
  36. />
  37. </odoo>