Base Location Geonames Import

base_location_geonames_import
REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/19.0/base_location_geonames_import
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPartner Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
COMMITTERS
COMMITTERSRuchir Shukla, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:47
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location
odoo/odoo:
    - base_address_extended
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 field Inherits base.view_country_form
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.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/18.0/base_location_geonames_import
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPartner Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Khôi (Kiên Kim)
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:10
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location
odoo/odoo:
    - base_address_extended
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 field Inherits base.view_country_form
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.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/17.0/base_location_geonames_import
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYPartner Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
COMMITTERS
COMMITTERSPedro M. Baeza, Weblate, OCA-git-bot, oca-ci, Jérémy Didderen
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:04
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location
odoo/odoo:
    - base_address_extended
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 field Inherits base.view_country_form
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.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/16.0/base_location_geonames_import
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYPartner Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
COMMITTERS
COMMITTERSPedro M. Baeza, Weblate, OCA-git-bot, oca-ci, sygel
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:43
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location
odoo/odoo:
    - base_address_extended
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

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 field Inherits base.view_country_form
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.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/15.0/base_location_geonames_import
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYPartner Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
COMMITTERS
COMMITTERSPedro M. Baeza, Jairo Llopis, OCA Transbot, Weblate, OCA-git-bot, oca-ci, Valentin Vinagre Urteaga, josep-tecnativa
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:32
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location
odoo/odoo:
    - base_address_city
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

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 field Inherits base.view_country_form
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 (8)
  • get_and_parse_csv(self, country)
    @api.model
  • prepare_city(self, row, country, state_id)
    @api.model
  • prepare_state(self, row, country)
    @api.model
  • prepare_zip(self, row, city_id)
    @api.model
  • run_import(self)
  • select_city(self, row, country, state_id)
    @api.model
  • select_zip(self, row, country, state_id)
    @api.model
  • 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.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/14.0/base_location_geonames_import
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYPartner Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
COMMITTERS
COMMITTERSPedro M. Baeza, mreficent, Ivàn Todorovich, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:40:55
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location
odoo/odoo:
    - base_address_city
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

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 field Inherits base.view_country_form
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).' string='Letter Case' args: [('unchanged', 'Unchanged'), ('title', 'Title Case'), ('upper', 'Upper Case')]
Public methods (9)
  • get_and_parse_csv(self, country)
    @api.model
  • prepare_city(self, row, country, state_id)
    @api.model
  • prepare_state(self, row, country)
    @api.model
  • prepare_zip(self, row, city_id)
    @api.model
  • run_import(self)
  • select_city(self, row, country, state_id)
    @api.model
  • select_state(self, row, country)
    @api.model
  • select_zip(self, row, country, state_id)
    @api.model
  • 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
    args: 'Geonames State Code Column'
  • geonames_state_name_column Integer
    args: 'Geonames State Name Column'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/13.0/base_location_geonames_import
VERSION
VERSION 2.0.1
CATEGORY
CATEGORYPartner Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
COMMITTERS
COMMITTERSPedro M. Baeza, mreficent, Stéphane Bidoul (ACSONE), manu, OCA Transbot, Víctor Martínez, oca-travis, Weblate, OCA-git-bot, Simone
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:11
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location
odoo/odoo:
    - base_address_city
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

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 field Inherits base.view_country_form
Models touched (2)

New fields (3)
  • country_id Many2one → res.country
    string='Country' args: 'res.country'
  • 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).' string='Letter Case' args: [('unchanged', 'Unchanged'), ('title', 'Title Case'), ('upper', 'Upper Case')]
Public methods (9)
  • get_and_parse_csv(self, country)
    @api.model
  • prepare_city(self, row, country, state_id)
    @api.model
  • prepare_state(self, row, country)
    @api.model
  • prepare_zip(self, row, city_id)
    @api.model
  • run_import(self)
  • select_city(self, row, country, state_id)
    @api.model
  • select_state(self, row, country)
    @api.model
  • select_zip(self, row, country, state_id)
    @api.model
  • 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
    args: 'Geonames State Code Column'
  • geonames_state_name_column Integer
    args: 'Geonames State Name Column'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/12.0/base_location_geonames_import
VERSION
VERSION 1.0.4
CATEGORY
CATEGORYPartner Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, AdaptiveCity
COMMITTERS
COMMITTERSPedro M. Baeza, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Stephan Keller
WEBSITE
WEBSITEhttps://github.com/OCA/partner-contact
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:15
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location
odoo/odoo:
    - base_address_city
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

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 field Inherits base.view_country_form
Models touched (2)

New fields (4)
  • code_row_index Integer
    readonly=True related='country_id.geonames_state_code_column'
  • country_id Many2one → res.country
    required=True args: 'res.country', '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).' string='Letter Case' args: [('unchanged', 'Unchanged'), ('title', 'Title Case'), ('upper', 'Upper Case')]
  • name_row_index Integer
    related='country_id.geonames_state_name_column'
Public methods (9)
  • get_and_parse_csv(self)
    @api.model
  • prepare_city(self, row, country, state_id)
    @api.model
  • prepare_state(self, row, country)
    @api.model
  • prepare_zip(self, row, city_id)
    @api.model
  • run_import(self)
    @api.multi
  • select_city(self, row, country, state_id)
    @api.model
  • select_state(self, row, country)
    @api.model
  • select_zip(self, row, country, state_id)
    @api.model
  • 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
    args: 'Geonames State Code Column'
  • geonames_state_name_column Integer
    args: 'Geonames State Name Column'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/11.0/base_location_geonames_import
VERSION
VERSION 1.1.2
CATEGORY
CATEGORYPartner Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, Antiun Ingeniería S.L.
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, Antiun Ingeniería S.L.
COMMITTERS
COMMITTERSPedro M. Baeza, GitHub, Jordi Ballester, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Olga Lugova
WEBSITE
WEBSITEhttp://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:23:56
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location
odoo/odoo:
    - base_address_city
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES requests
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
better_zip_geonames_import_form Import from Geonames form view better.zip.geonames.import form New
view_country_geonames_form res.country.geonames.form res.country field Inherits base.view_country_form
Models touched (2)

New fields (3)
  • country_id Many2one → res.country
    required=True args: 'res.country', 'Country'
  • enforce_cities Boolean
    help='The city will be created as a separate entity.' readonly=True related='country_id.enforce_cities' string='Enforce Cities'
  • 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).' string='Letter Case' args: [('unchanged', 'Unchanged'), ('title', 'Title Case'), ('upper', 'Upper Case')]
Public methods (5)
  • create_better_zip(self, row, country, res_city)
    @api.model
  • create_res_city(self, row, country)
    @api.model
  • run_import(self)
    @api.multi
  • select_or_create_state(self, row, country, code_row_index=4, name_row_index=3)
    @api.model
  • 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
    args: 'Geonames State Code Column'
  • geonames_state_name_column Integer
    args: 'Geonames State Name Column'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/10.0/base_location_geonames_import
VERSION
VERSION 1.1.1
CATEGORY
CATEGORYPartner Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, Antiun Ingeniería S.L.
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, Antiun Ingeniería S.L.
COMMITTERS
COMMITTERSPedro M. Baeza, GitHub, OCA Transbot, Nicola Malcontenti, oca-travis, Weblate, Rafael Blasco
WEBSITE
WEBSITEhttp://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:55
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location
odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES requests
unicodecsv
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
better_zip_geonames_import_form Import from Geonames form view better.zip.geonames.import form New
view_country_geonames_form res.country.geonames.form res.country field Inherits base.view_country_form
Models touched (2)

New fields (2)
  • country_id Many2one → res.country
    required=True args: 'res.country', '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).' string='Letter Case' args: [('unchanged', 'Unchanged'), ('title', 'Title Case'), ('upper', 'Upper Case')]
Public methods (4)
  • create_better_zip(self, row, country)
    @api.model
  • run_import(self)
    @api.multi
  • select_or_create_state(self, row, country, code_row_index=4, name_row_index=3)
    @api.model
  • 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
    args: 'Geonames State Code Column'
  • geonames_state_name_column Integer
    args: 'Geonames State Name Column'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/9.0/base_location_geonames_import
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYPartner Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, Antiun Ingeniería S.L.
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA), Akretion, Agile Business Group, Antiun Ingeniería S.L.
COMMITTERS
COMMITTERSPedro M. Baeza, GitHub, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Weblate
WEBSITE
WEBSITEhttp://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location
odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES requests
unicodecsv
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
better_zip_geonames_import_form asterisk.server.company better.zip.geonames.import form New
Models touched (1)

New fields (2)
  • country_id Many2one → res.country
    required=True args: 'res.country', 'Country'
  • title_case Boolean
    help='Converts retreived city and state names to Title Case.' string='Title Case'
Public methods (4)
  • create_better_zip(self, row, country)
    @api.model
  • run_import(self)
    @api.multi
  • select_or_create_state(self, row, country, code_row_index=4, name_row_index=3)
    @api.model
  • 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
REPOSITORY
REPOSITORYOCA/partner-contact
GIT
GIThttps://github.com/OCA/partner-contact.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/partner-contact/tree/8.0/base_location_geonames_import
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYPartner Management
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, Agile Business Group, Antiun Ingeniería S.L., Serv. Tecnol. Avanzados - Pedro M. Baeza
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, Agile Business Group, Antiun Ingeniería S.L., Serv. Tecnol. Avanzados - Pedro M. Baeza
COMMITTERS
COMMITTERSStéphane Bidoul, Lorenzo Battistini, Alexandre Fayolle, Pedro M. Baeza, Denis Roussel, Stéphane Bidoul (ACSONE), Franco Tampieri, OCA Transbot, oca-travis, Weblate, Iván Todorovich
WEBSITE
WEBSITEhttp://www.akretion.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:21
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/partner-contact:
    - base_location
odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES requests
unicodecsv
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
better_zip_geonames_import_form asterisk.server.company better.zip.geonames.import form New
Models touched (1)

New fields (2)
  • country_id Many2one → res.country
    required=True args: 'res.country', 'Country'
  • title_case Boolean
    help='Converts retreived city and state names to Title Case.' string='Title Case'
Public methods (4)
  • create_better_zip(self, row, country)
    @api.model
  • run_import(self)
    @api.multi
  • select_or_create_state(self, row, country, code_row_index=4, name_row_index=3)
    @api.model
  • 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