Repository
OCA/partner-contact · module folder · Try on Runboat
Module version
1.0.0
Category
Partner Management
Folder size
0.49 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/partner-contact
Last tracking update
2026-08-07 09:06:26
Authors
Akretion, Odoo Community Association (OCA), Agile Business Group, Tecnativa, AdaptiveCity
Maintainers
Akretion, Odoo Community Association (OCA), Agile Business Group, Tecnativa, AdaptiveCity
Committers
Weblate, Ruchir Shukla, OCA-git-bot, oca-ci
Odoo dependencies
OCA/partner-contact:
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
l10n_es_toponyms
Description
This module adds a wizard to import cities and/or city zip entries from
[Geonames](http://www.geonames.org/) database.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
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_ids Many2many → res.country
    string='Countries' args: 'res.country'
  • letter_case Selection
    default='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')]
Public methods (6)
  • 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.model
    Override 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_column Integer
  • geonames_state_name_column Integer
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…