Skip to content

Syncing from upstream camptocamp/odoo-cloud-platform (17.0)#163

Merged
bt-admin merged 4 commits into
brain-tec:17.0from
camptocamp:17.0
May 20, 2026
Merged

Syncing from upstream camptocamp/odoo-cloud-platform (17.0)#163
bt-admin merged 4 commits into
brain-tec:17.0from
camptocamp:17.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

vvrossem and others added 4 commits March 11, 2026 12:41
Fixes
```
Traceback (most recent call last):
  File "/odoo/src/odoo/modules/registry.py", line 110, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/odoo/src/odoo/modules/loading.py", line 485, in load_modules
    processed_modules += load_marked_modules(env, graph,
  File "/odoo/src/odoo/modules/loading.py", line 366, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/odoo/src/odoo/modules/loading.py", line 187, in load_module_graph
    load_openerp_module(package.name)
  File "/odoo/src/odoo/modules/module.py", line 395, in load_openerp_module
    __import__(qualname)
  File "/odoo/external-src/odoo-cloud-platform/logging_json/__init__.py", line 1, in <module>
    from . import json_log
  File "/odoo/external-src/odoo-cloud-platform/logging_json/json_log.py", line 32, in <module>
    class OdooJsonFormatter(jsonlogger.JsonFormatter):
AttributeError: 'NoneType' object has no attribute 'JsonFormatter'
2026-03-11 10:31:34,072 82 CRITICAL odoodb odoo.service.server: Failed to initialize database `odoodb`.
Traceback (most recent call last):
  File "/odoo/src/odoo/service/server.py", line 1374, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
  File "/usr/local/lib/python3.10/site-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
  File "/odoo/src/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
  File "/odoo/src/odoo/modules/registry.py", line 110, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/odoo/src/odoo/modules/loading.py", line 485, in load_modules
    processed_modules += load_marked_modules(env, graph,
  File "/odoo/src/odoo/modules/loading.py", line 366, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/odoo/src/odoo/modules/loading.py", line 187, in load_module_graph
    load_openerp_module(package.name)
  File "/odoo/src/odoo/modules/module.py", line 395, in load_openerp_module
    __import__(qualname)
  File "/odoo/external-src/odoo-cloud-platform/logging_json/__init__.py", line 1, in <module>
    from . import json_log
  File "/odoo/external-src/odoo-cloud-platform/logging_json/json_log.py", line 32, in <module>
    class OdooJsonFormatter(jsonlogger.JsonFormatter):
AttributeError: 'NoneType' object has no attribute 'JsonFormatter'
```

Inspired by nolar/kopf#1149
The blob already exists, so the exception traceback (inside upload_blob)
is not useful on its own. Adding stack_info=True to _logger.exception()
also logs the call stack, revealing who triggered the duplicate write.
[17.0][IMP] attachment_azure: add stack_info on ResourceExistsError
…e-error

[17.0][FIX] logging_json: no attribute 'JsonFormatter'
@bt-admin bt-admin added the 17.0 label May 20, 2026
@bt-admin bt-admin merged commit f9a5535 into brain-tec:17.0 May 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants