Browse Source
Merge pull request #320 from akretion/10-mig-geonames-import
Merge pull request #320 from akretion/10-mig-geonames-import
Port base_location_geonames_import to v10pull/366/head
Pedro M. Baeza
8 years ago
committed by
GitHub
7 changed files with 82 additions and 66 deletions
-
27base_location_geonames_import/README.rst
-
1base_location_geonames_import/__init__.py
-
6base_location_geonames_import/__manifest__.py
-
20base_location_geonames_import/tests/test_base_location_geonames_import.py
-
1base_location_geonames_import/wizard/__init__.py
-
23base_location_geonames_import/wizard/geonames_import.py
-
70base_location_geonames_import/wizard/geonames_import_view.xml
@ -1,4 +1,3 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import wizard |
@ -1,4 +1,3 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|||
|
|||
from . import geonames_import |
@ -1,41 +1,41 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
<odoo> |
|||
|
|||
<record id="better_zip_geonames_import_form" model="ir.ui.view"> |
|||
<field name="name">asterisk.server.company</field> |
|||
<field name="model">better.zip.geonames.import</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Import from Geonames"> |
|||
<group name="main"> |
|||
<field name="country_id"/> |
|||
<label string="For the country selected above, this wizard will download the latest version of the list of cities from geonames.org, create new location entries if not found already in the system, and DELETE MISSING ENTRIES from new file." |
|||
colspan="2" name="import-help"/> |
|||
</group> |
|||
<group name="options"> |
|||
<field name="title_case"/> |
|||
</group> |
|||
<footer> |
|||
<button name="run_import" type="object" |
|||
class="oe_highlight" string="Import"/> |
|||
<button special="cancel" string="Cancel" class="oe_link"/> |
|||
</footer> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
<record id="better_zip_geonames_import_form" model="ir.ui.view"> |
|||
<field name="name">Import from Geonames form view</field> |
|||
<field name="model">better.zip.geonames.import</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Import from Geonames"> |
|||
<group name="help"> |
|||
<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> |
|||
</div> |
|||
</group> |
|||
<group name="main"> |
|||
<field name="country_id"/> |
|||
<field name="letter_case"/> |
|||
</group> |
|||
<footer> |
|||
<button name="run_import" type="object" |
|||
class="oe_highlight" string="Import"/> |
|||
<button special="cancel" string="Cancel" class="oe_link"/> |
|||
</footer> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="better_zip_geonames_import_action" model="ir.actions.act_window"> |
|||
<field name="name">Import from Geonames</field> |
|||
<field name="res_model">better.zip.geonames.import</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">form</field> |
|||
<field name="target">new</field> |
|||
</record> |
|||
<record id="better_zip_geonames_import_action" model="ir.actions.act_window"> |
|||
<field name="name">Import from Geonames</field> |
|||
<field name="res_model">better.zip.geonames.import</field> |
|||
<field name="view_mode">form</field> |
|||
<field name="target">new</field> |
|||
</record> |
|||
|
|||
<menuitem id="better_zip_geonames_import_menu" |
|||
<menuitem |
|||
id="better_zip_geonames_import_menu" |
|||
action="better_zip_geonames_import_action" |
|||
parent="base.menu_localisation" |
|||
sequence="50"/> |
|||
parent="base_location.locations_root_menu" |
|||
sequence="50" |
|||
/> |
|||
|
|||
</data> |
|||
</openerp> |
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue