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.

50 lines
2.0 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
  11. >For the selected country, this wizard will download the latest version of the list of cities from <a
  12. href="http://www.geonames.org/"
  13. >geonames.org</a>, create new location entries if not found already in the system, and <b
  14. >delete missing entries</b> from new file.</p>
  15. </div>
  16. </group>
  17. <group name="main">
  18. <field
  19. name="country_ids"
  20. widget="many2many_tags"
  21. options="{'no_create': True}"
  22. required="1"
  23. />
  24. <field name="letter_case" />
  25. </group>
  26. <footer>
  27. <button
  28. name="run_import"
  29. type="object"
  30. class="btn-primary"
  31. string="Import"
  32. />
  33. <button special="cancel" string="Cancel" class="oe_link" />
  34. </footer>
  35. </form>
  36. </field>
  37. </record>
  38. <record id="city_zip_geonames_import_action" model="ir.actions.act_window">
  39. <field name="name">Import from Geonames</field>
  40. <field name="res_model">city.zip.geonames.import</field>
  41. <field name="view_mode">form</field>
  42. <field name="target">new</field>
  43. </record>
  44. <menuitem
  45. id="city_zip_geonames_import_menu"
  46. action="city_zip_geonames_import_action"
  47. parent="contacts.menu_localisation"
  48. sequence="50"
  49. />
  50. </odoo>