l10n_br_zip
in l10n-brazil · source on GitHub
Brazilian Localisation ZIP Codes
Category: Localisation · Akretion · AGPL-3
| Series | Status | Details | Code |
|---|---|---|---|
| 16.0 | ~Environment problem | External Python package missing: brazilcep · run 2026-09-10 | on GitHub |
| 17.0 | ~Environment problem | External Python package missing: brazilcep · run 2026-10-03 | on GitHub |
| 18.0 | ✓Installs | · run 2026-09-18 · 18.0.1.2.0 | on GitHub |
| 19.0 | ✓Installs | · run 2026-09-25 · 19.0.1.2.0 | on GitHub |
| 20.0 | —Not tested | no branch |
Odoo 20.0 dev — development line
A different statement from the table above. There: the module as published, on a released platform. Here: the module’s code with its manifest version mechanically raised, on a platform that has not been released and changes daily.
| Status | Details |
|---|---|
| ✗fails | The same code installs on 19.0; on the development line it does not. The difference belongs to the platform. (access_model) · version 19.0.1.1.0 → 19.5.1.1.0, code unchanged · run 2026-09-10 · odoo 19.5 · modidx/odoo:master-deps-20260910 |
Log excerpt, 20.0 dev
2026-09-10 23:20:56,789 1 INFO job_31e94bff3826 odoo.registry: Registry changed, signaling through the database
2026-09-10 23:20:56,792 1 INFO job_31e94bff3826 odoo.modules.loading: Module base_address_extended loaded in 0.72s, 195 queries (+195 other)
2026-09-10 23:20:56,792 1 INFO job_31e94bff3826 odoo.modules.loading: Loading module l10n_br_base (16/17)
2026-09-10 23:20:56,960 1 WARNING job_31e94bff3826 odoo.modules.loading: Transient module states were reset
2026-09-10 23:20:56,962 1 ERROR job_31e94bff3826 odoo.registry: Failed to load registry
2026-09-10 23:20:56,962 1 CRITICAL job_31e94bff3826 odoo.service.server: Failed to initialize database `job_31e94bff3826`.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1559, in preload_registries
registry = Registry.new(dbname, update_module=update_module, install_modules=config['init'], upgrade_modules=config['update'], reinit_modules=config['reinit'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 67, in locked
return func(inst, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/orm/registry.py", line 222, in new
contextvars.Context().run(
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 446, in load_modules
load_module_graph(
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 181, in load_module_graph
model_names = registry.load(package)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/orm/registry.py", line 442, in load
model_cls = model_classes.add_to_registry(self, model_def)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/orm/model_classes.py", line 188, in add_to_registry
raise TypeError(f"Model {name!r} does not exist in registry.")
TypeError: Model 'res.bank' does not exist in registry.
2026-09-10 23:20:56,967 1 INFO job_31e94bff3826 odoo.service.server.ThreadedServer: Initiating shutdown
2026-09-10 23:20:56,967 1 INFO job_31e94bff3826 odoo.service.server.ThreadedServer: Hit CTRL-C again or send a second signal to force the shutdown.
2026-09-10 23:20:56,967 1 INFO job_31e94bff3826 odoo.addons.bus.websocket: Disconnecting 0 websockets
2026-09-10 23:20:57,069 1 INFO job_31e94bff3826 odoo.sql_db: ConnectionPool(read/write;used=0/count=0/max=64): Closed 1 connectionsProvenance: __manifest__.py sha256 f70c69009634cf92… · tree of 31 files without the manifest, sha256 4a56e7abc1a508c8…
This does not say the module is compatible with Odoo 20.0, and does not say it installs on Odoo 20.0 — on a stock platform it will not, until its maintainer raises the version. Why we raise the version
Odoo 20.0 — the branch itself
The same frozen code, run again against the real 20.0 branch. The run above used Odoo’s development line before the branch was cut; this one used the branch, pinned to one commit.
| Status | Details |
|---|---|
| ✗fails | The same code installs on 19.0; on the development line it does not. The difference belongs to the platform. (access_model) · version 19.0.1.1.0 → 20.0.1.1.0, code unchanged · run 2026-09-18 · odoo 20.0 · modidx/odoo:20.0-deps-20260918 |
Log excerpt, 20.0 dev
2026-09-18 21:15:09,836 1 INFO job_0ece18502a07 odoo.registry: Registry changed, signaling through the database
2026-09-18 21:15:09,839 1 INFO job_0ece18502a07 odoo.modules.loading: Module base_address_extended loaded in 0.78s, 205 queries (+205 other)
2026-09-18 21:15:09,840 1 INFO job_0ece18502a07 odoo.modules.loading: Loading module l10n_br_base (18/19)
2026-09-18 21:15:09,984 1 WARNING job_0ece18502a07 odoo.modules.loading: Transient module states were reset
2026-09-18 21:15:09,986 1 ERROR job_0ece18502a07 odoo.registry: Failed to load registry
2026-09-18 21:15:09,987 1 CRITICAL job_0ece18502a07 odoo.service.server: Failed to initialize database `job_0ece18502a07`.
Traceback (most recent call last):
File "/opt/odoo/odoo/service/server.py", line 1520, in preload_registries
registry = Registry.new(dbname, update_module=update_module, install_modules=config['init'], upgrade_modules=config['update'], reinit_modules=config['reinit'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/tools/func.py", line 67, in locked
return func(inst, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/orm/registry.py", line 222, in new
contextvars.Context().run(
File "/opt/odoo/odoo/modules/loading.py", line 449, in load_modules
load_module_graph(
File "/opt/odoo/odoo/modules/loading.py", line 181, in load_module_graph
model_names = registry.load(package)
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/orm/registry.py", line 442, in load
model_cls = model_classes.add_to_registry(self, model_def)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/odoo/odoo/orm/model_classes.py", line 188, in add_to_registry
raise TypeError(f"Model {name!r} does not exist in registry.")
TypeError: Model 'res.bank' does not exist in registry.
2026-09-18 21:15:09,993 1 INFO job_0ece18502a07 odoo.service.server.ThreadedServer: Initiating shutdown
2026-09-18 21:15:09,993 1 INFO job_0ece18502a07 odoo.service.server.ThreadedServer: Hit CTRL-C again or send a second signal to force the shutdown.
2026-09-18 21:15:09,993 1 INFO job_0ece18502a07 odoo.addons.bus.websocket: Disconnecting 0 websockets
2026-09-18 21:15:10,095 1 INFO job_0ece18502a07 odoo.sql_db: ConnectionPool(read/write;used=0/count=0/max=64): Closed 1 connectionsProvenance: __manifest__.py sha256 f70c69009634cf92… · tree of 31 files without the manifest, sha256 4a56e7abc1a508c8…
This does not say the module is compatible with Odoo 20.0, and does not say it installs on Odoo 20.0 — on a stock platform it will not, until its maintainer raises the version. Why we raise the version
The module’s code on 19.0
| Lines of code | python 897 · xml 177 |
| Tests | yes: 2 file(s), 440 lines |
| Migration scripts | no |
| Models | 2 new · 2 extensions |
Lines are physical, blanks and comments included, as wc -l. Tests are test_*.py files under tests/. Models are lines holding _name = and _inherit =. These are facts about the code, not a judgement: more lines is neither better nor worse. Measured 2026-08-28 on tree 6b5d44b39e4e.
The apps.odoo.com catalogue has a listing under the same technical name on 16.0, 17.0, 18.0: apps.odoo.com/apps/modules/18.0/l10n_br_zip. A matching name does not prove matching code — how we counted this.
Depends on
| Module | Status | Checked |
|---|---|---|
| l10n_br_base | ✓Installs | 2026-10-06 |
External dependencies
Checked against modidx/odoo:19.0-deps-20260922.
| Kind | Package | In our image |
|---|---|---|
| python | brazilcep | in image |
| python | erpbrasil-base>=2.4.2 | in image |
Depended on by
1 module on 19.0 declares this one as a dependency.
History
| Last change | 2026-05-07 |
| Code commits, 12 months | 160 |
| Most active | Renato Lima, Magno Costa, Raphaël Valyi |
| Files | 32 |
Translation and bot commits are excluded from the commit count.
Install log 17.0
modules._state_update('to install', ['uninstalled'])
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 406, in _state_update
self.check_external_dependencies(module.name, newstate)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 375, in check_external_dependencies
raise UserError(msg)
odoo.exceptions.UserError: Unable to install module "l10n_br_zip" because an external dependency is not met: Python library not installed: brazilcep
2026-10-03 04:05:37,636 1 CRITICAL job_a1f70a15e9dd odoo.service.server: Failed to initialize database `job_a1f70a15e9dd`.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 496, in check_python_external_dependency
get_distribution(pydep)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 471, in get_distribution
dist = get_provider(dist)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 347, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 891, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 777, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'brazilcep' distribution was not found and is required by the application
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 499, in check_python_external_dependency
importlib.import_module(pydep)
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'brazilcep'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 367, in check_external_dependencies
modules.check_manifest_dependencies(terp)
File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 518, in check_manifest_dependencies
check_python_external_dependency(pydep)
File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 504, in check_python_external_dependency
raise Exception('Python library not installed: %s' % (pydep,))
Exception: Python library not installed: brazilcep
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1422, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "<decorator-gen-16>", line 2, in new
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 99, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 452, in load_modules
modules.button_install()
File "<decorator-gen-76>", line 2, in button_install
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 77, in check_and_log
return method(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 427, in button_install
modules._state_update('to install', ['uninstalled'])
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 406, in _state_update
self.check_external_dependencies(module.name, newstate)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 375, in check_external_dependencies
raise UserError(msg)
odoo.exceptions.UserError: Unable to install module "l10n_br_zip" because an external dependency is not met: Python library not installed: brazilcep
2026-10-03 04:05:37,639 1 INFO job_a1f70a15e9dd odoo.service.server: Initiating shutdown
2026-10-03 04:05:37,639 1 INFO job_a1f70a15e9dd odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.
2026-10-03 04:05:37,639 1 INFO job_a1f70a15e9dd odoo.sql_db: ConnectionPool(used=0/count=0/max=64): Closed 1 connectionsInstall log 16.0
modules._state_update('to install', ['uninstalled'])
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 399, in _state_update
self.check_external_dependencies(module.name, newstate)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 368, in check_external_dependencies
raise UserError(msg % (module_name, e.args[0]))
odoo.exceptions.UserError: Unable to install module "l10n_br_zip" because an external dependency is not met: Python library not installed: brazilcep
2026-09-10 03:58:49,550 1 CRITICAL job_43df05b75a3f odoo.service.server: Failed to initialize database `job_43df05b75a3f`.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 538, in check_python_external_dependency
pkg_resources.get_distribution(pydep)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 466, in get_distribution
dist = get_provider(dist)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 342, in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 886, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 772, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'brazilcep' distribution was not found and is required by the application
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 541, in check_python_external_dependency
importlib.import_module(pydep)
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'brazilcep'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 360, in check_external_dependencies
modules.check_manifest_dependencies(terp)
File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 560, in check_manifest_dependencies
check_python_external_dependency(pydep)
File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 546, in check_python_external_dependency
raise Exception('Python library not installed: %s' % (pydep,))
Exception: Python library not installed: brazilcep
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 1333, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "<decorator-gen-16>", line 2, in new
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 87, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 460, in load_modules
modules.button_install()
File "<decorator-gen-76>", line 2, in button_install
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
return method(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 420, in button_install
modules._state_update('to install', ['uninstalled'])
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 399, in _state_update
self.check_external_dependencies(module.name, newstate)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 368, in check_external_dependencies
raise UserError(msg % (module_name, e.args[0]))
odoo.exceptions.UserError: Unable to install module "l10n_br_zip" because an external dependency is not met: Python library not installed: brazilcep
2026-09-10 03:58:49,554 1 INFO job_43df05b75a3f odoo.service.server: Initiating shutdown
2026-09-10 03:58:49,554 1 INFO job_43df05b75a3f odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.
2026-09-10 03:58:49,554 1 INFO job_43df05b75a3f odoo.sql_db: ConnectionPool(used=0/count=0/max=64): Closed 1 connectionsResult looks wrong? Tell us — we will show the log or run it again. Report a wrong result