OdooWiki OCA HUB

Topónimos Peruanos

l10n_pe_toponym folder_open OCA/l10n-peru open_in_new
Localization License: AGPL-3

Departamentos, Provincias y Distritos de Perú.

  • Añade los 25 Departamentos, 196 Provincias y 1874 Distritos de Perú.
  • Todos los registros cuentan con su código de Ubigeo.

Los datos han sido obtenidos del Instituto Nacional de Estadística e Informática(INEI) de Perú, extraída de la última actualización de Códigos de Ubicación Geográfica del año 2016. El asistente realiza la descarga automática de Internet, pero si por cualquier razón hay algún problema, existe una copia local cuya última actualización fue el 12/07/2020.

Disponible en el siguiente enlace:

http://webinei.inei.gob.pe:8080/sisconcode/web/ubigeo/listaBusquedaUbigeoPorUbicacionGeograficaXls/5/1/1/null/null/null

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Adds the official Peruvian geographic divisions (departments, provinces and districts) with their Ubigeo codes, and provides a wizard to load them from the INEI website or from a local file.

This module gives Odoo a complete Peruvian address structure. It creates two new lists: provinces and districts, each with a name and an official Ubigeo code.

  • Provinces belong to a department (the standard Odoo state) and districts belong to a province; the department of a district is filled in automatically from its province.
  • The country defaults to Peru, and codes must be unique inside their parent (a province code is unique per department, a district code is unique per province).

Users find the new lists under the Localization menu in Contacts: "Provincias" and "Distritos", with simple list and form screens. A "Country Group" menu entry is also reorganised there.

A setup wizard named "Importar Data de Ubigeo Peruano" loads the data. It can download the file from the INEI website, or, if that download fails, use a local copy last updated on 12/07/2020. The wizard shows a message when the Internet import fails and offers the local import button instead.

Read access is open to all users; only partner managers can create, edit or delete these records. The module depends on Contacts and needs the Python requests library (and xlrd for reading the downloaded spreadsheet).

Depends on

contacts

Menus it adds

menu_provincemenu_districtCountry Group
Models and fields (3)
  • l10n_pe.res.country.district · new modelcode (Código), name (Nombre), state_id (Departamento), country_id (País), province_id (Provincia)
  • l10n_pe.res.country.province · new modelcode (Código), name (Nombre), state_id (Departamento), country_id (País)
  • l10n_pe.toponym.import.wizard · new modelimport_fail

Text generated by AI (DeepSeek) from reading the Odoo 12.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/l10n-peru.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.