Base Location Geonames Import
base_location_geonames_import · OCA/partner-contact
Health
77/100
good
-
Security25/25No findings
-
Activity12/25Last human commit 13 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 12 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.49 MB
Module directory on disk
Code analysis
0 migration notes
2 models
2 views
0 HTTP endpoints
Description
This module adds a wizard to import cities and/or city zip entries from Geonames database.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
city_zip_geonames_import_form |
Import from Geonames form view | city.zip.geonames.import | form | New |
view_country_geonames_form |
res.country.geonames.form | res.country | form | Inherits base.view_country_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (2)
-
country_idsMany2many → res.countrystring='Countries' args: 'res.country' -
letter_caseSelectiondefault='unchanged'help='Converts retreived city and state names to Title Case (upper case on each first letter of a word) or Upper Case (all letters upper case).' args: [('unchanged', 'Unchanged'), ('title', 'Title Case'), ('upper', 'Upper Case')]
-
get_and_parse_csv(self, country)@api.model -
prepare_city(self, row, country, state)@api.model -
prepare_state(self, row, country)@api.model -
prepare_zip(self, row, city_id)@api.model -
run_import(self) -
transform_city_name(self, city, country)@api.modelOverride it for transforming city name (if needed) :param city: Original city name :param country: Country record :return: Transformed city name
New fields (2)
-
geonames_state_code_columnInteger -
geonames_state_name_columnInteger
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…