|
@ -1,41 +1,45 @@ |
|
|
<?xml version="1.0" encoding="utf-8"?> |
|
|
|
|
|
|
|
|
<?xml version="1.0" encoding="utf-8" ?> |
|
|
<odoo> |
|
|
<odoo> |
|
|
|
|
|
|
|
|
<record id="city_zip_geonames_import_form" model="ir.ui.view"> |
|
|
<record id="city_zip_geonames_import_form" model="ir.ui.view"> |
|
|
<field name="name">Import from Geonames form view</field> |
|
|
<field name="name">Import from Geonames form view</field> |
|
|
<field name="model">city.zip.geonames.import</field> |
|
|
<field name="model">city.zip.geonames.import</field> |
|
|
<field name="arch" type="xml"> |
|
|
|
|
|
|
|
|
<field name="arch" type="xml"> |
|
|
<form string="Import from Geonames"> |
|
|
<form string="Import from Geonames"> |
|
|
<group name="help"> |
|
|
<group name="help"> |
|
|
<div> |
|
|
<div> |
|
|
<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> |
|
|
|
|
|
|
|
|
<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> |
|
|
</div> |
|
|
</div> |
|
|
</group> |
|
|
</group> |
|
|
<group name="main"> |
|
|
<group name="main"> |
|
|
<field name="country_id"/> |
|
|
|
|
|
<field name="letter_case"/> |
|
|
|
|
|
|
|
|
<field name="country_id" /> |
|
|
|
|
|
<field name="letter_case" /> |
|
|
</group> |
|
|
</group> |
|
|
<footer> |
|
|
<footer> |
|
|
<button name="run_import" type="object" |
|
|
|
|
|
class="oe_highlight" string="Import"/> |
|
|
|
|
|
<button special="cancel" string="Cancel" class="oe_link"/> |
|
|
|
|
|
|
|
|
<button |
|
|
|
|
|
name="run_import" |
|
|
|
|
|
type="object" |
|
|
|
|
|
class="oe_highlight" |
|
|
|
|
|
string="Import" |
|
|
|
|
|
/> |
|
|
|
|
|
<button special="cancel" string="Cancel" class="oe_link" /> |
|
|
</footer> |
|
|
</footer> |
|
|
</form> |
|
|
</form> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
<record id="city_zip_geonames_import_action" model="ir.actions.act_window"> |
|
|
<record id="city_zip_geonames_import_action" model="ir.actions.act_window"> |
|
|
<field name="name">Import from Geonames</field> |
|
|
<field name="name">Import from Geonames</field> |
|
|
<field name="res_model">city.zip.geonames.import</field> |
|
|
<field name="res_model">city.zip.geonames.import</field> |
|
|
<field name="view_mode">form</field> |
|
|
<field name="view_mode">form</field> |
|
|
<field name="target">new</field> |
|
|
<field name="target">new</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
<menuitem |
|
|
<menuitem |
|
|
id="city_zip_geonames_import_menu" |
|
|
|
|
|
action="city_zip_geonames_import_action" |
|
|
|
|
|
parent="contacts.menu_localisation" |
|
|
|
|
|
sequence="50" |
|
|
|
|
|
|
|
|
id="city_zip_geonames_import_menu" |
|
|
|
|
|
action="city_zip_geonames_import_action" |
|
|
|
|
|
parent="contacts.menu_localisation" |
|
|
|
|
|
sequence="50" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
</odoo> |
|
|
</odoo> |