fastapi
in rest-framework · source on GitHub
Odoo FastAPI endpoint
ACSONE SA/NV · LGPL-3
| Series | Status | Details | Code |
|---|---|---|---|
| 16.0 | ~Environment problem | A system utility is missing from the image · run 2026-09-10 | on GitHub |
| 17.0 | ✓Installs | · run 2026-08-21 · 17.0.3.2.1 | on GitHub |
| 18.0 | ✓Installs | · run 2026-08-20 · 18.0.1.3.4 | on GitHub |
| 19.0 | ✓Installs | · run 2026-08-19 · 19.0.1.1.0 | on GitHub |
| 20.0 | ◌Not installable by manifest | Not installable by manifest | on GitHub |
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. (model_gone) · failed in a file of ANOTHER module: endpoint_route_handler/security/ir.model.access.csv · 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 18:50:47,830 1 INFO job_0368e3141f02 odoo.registry: module endpoint_route_handler: creating or updating database tables
2026-09-10 18:50:48,045 1 INFO job_0368e3141f02 odoo.modules.loading: loading endpoint_route_handler/security/ir.model.access.csv
2026-09-10 18:50:48,134 1 WARNING job_0368e3141f02 odoo.modules.loading: Transient module states were reset
2026-09-10 18:50:48,135 1 ERROR job_0368e3141f02 odoo.registry: Failed to load registry
2026-09-10 18:50:48,135 1 CRITICAL job_0368e3141f02 odoo.service.server: Failed to initialize database `job_0368e3141f02`.
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 211, in load_module_graph
load_data(env, idref, 'init', kind='data', package=package)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 56, in load_data
convert_file(env, package.name, filename, idref, mode, noupdate=kind == 'demo')
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 712, in convert_file
convert_csv_import(env, module, pathname, fp.read(), idref, mode, noupdate)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 769, in convert_csv_import
result = env[model].with_context(**context).load(fields, datas)
~~~^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/orm/environments.py", line 107, in __getitem__
return self.registry[model_name](self, (), ())
~~~~~~~~~~~~~^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/odoo/orm/registry.py", line 385, in __getitem__
return self.models[model_name]
~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'ir.model.access'
2026-09-10 18:50:48,139 1 INFO job_0368e3141f02 odoo.service.server.ThreadedServer: Initiating shutdown
2026-09-10 18:50:48,140 1 INFO job_0368e3141f02 odoo.service.server.ThreadedServer: Hit CTRL-C again or send a second signal to force the shutdown.
2026-09-10 18:50:48,140 1 INFO job_0368e3141f02 odoo.addons.bus.websocket: Disconnecting 0 websockets
2026-09-10 18:50:48,242 1 INFO job_0368e3141f02 odoo.sql_db: ConnectionPool(read/write;used=0/count=0/max=64): Closed 1 connectionsProvenance: __manifest__.py sha256 1a84f4c0a6c0663a… · tree of 45 files without the manifest, sha256 f792f3d6d20a563d…
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. (model_gone) · failed in a file of ANOTHER module: endpoint_route_handler/security/ir.model.access.csv · 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 13:52:17,731 1 INFO job_d4b37fd560f5 odoo.registry: module endpoint_route_handler: creating or updating database tables
2026-09-18 13:52:17,925 1 INFO job_d4b37fd560f5 odoo.modules.loading: loading endpoint_route_handler/security/ir.model.access.csv
2026-09-18 13:52:18,001 1 WARNING job_d4b37fd560f5 odoo.modules.loading: Transient module states were reset
2026-09-18 13:52:18,003 1 ERROR job_d4b37fd560f5 odoo.registry: Failed to load registry
2026-09-18 13:52:18,003 1 CRITICAL job_d4b37fd560f5 odoo.service.server: Failed to initialize database `job_d4b37fd560f5`.
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 211, in load_module_graph
load_data(env, idref, 'init', kind='data', package=package)
File "/opt/odoo/odoo/modules/loading.py", line 56, in load_data
convert_file(env, package.name, filename, idref, mode, noupdate=kind == 'demo')
File "/opt/odoo/odoo/tools/convert.py", line 714, in convert_file
convert_csv_import(env, module, pathname, fp.read(), idref, mode, noupdate)
File "/opt/odoo/odoo/tools/convert.py", line 771, in convert_csv_import
result = env[model].with_context(**context).load(fields, datas)
~~~^^^^^^^
File "/opt/odoo/odoo/orm/environments.py", line 107, in __getitem__
return self.registry[model_name](self, (), ())
~~~~~~~~~~~~~^^^^^^^^^^^^
File "/opt/odoo/odoo/orm/registry.py", line 385, in __getitem__
return self.models[model_name]
~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'ir.model.access'
2026-09-18 13:52:18,007 1 INFO job_d4b37fd560f5 odoo.service.server.ThreadedServer: Initiating shutdown
2026-09-18 13:52:18,007 1 INFO job_d4b37fd560f5 odoo.service.server.ThreadedServer: Hit CTRL-C again or send a second signal to force the shutdown.
2026-09-18 13:52:18,007 1 INFO job_d4b37fd560f5 odoo.addons.bus.websocket: Disconnecting 0 websockets
2026-09-18 13:52:18,109 1 INFO job_d4b37fd560f5 odoo.sql_db: ConnectionPool(read/write;used=0/count=0/max=64): Closed 1 connectionsProvenance: __manifest__.py sha256 1a84f4c0a6c0663a… · tree of 45 files without the manifest, sha256 f792f3d6d20a563d…
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 apps.odoo.com catalogue has a listing under the same technical name on 16.0: apps.odoo.com/apps/modules/16.0/fastapi. A matching name does not prove matching code — how we counted this.
Depends on
Blocked by 1 of 1 dependencies on 20.0: endpoint_route_handler.
| Module | Status | Checked |
|---|---|---|
| endpoint_route_handler | ?Cannot be verified | not in the index for 20.0 |
External dependencies
Checked against modidx/odoo:20.0-deps-20260929.
| Kind | Package | In our image |
|---|---|---|
| python | fastapi>=0.110.0 | in image |
| python | python-multipart | in image |
| python | ujson | in image |
| python | a2wsgi>=1.10.6 | in image |
| python | parse-accept-language | in image |
Install log 16.0
2026-09-10 04:02:20,788 1 INFO ? odoo: Odoo version 16.0-20250909
2026-09-10 04:02:20,789 1 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf
2026-09-10 04:02:20,789 1 INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons', '/var/lib/odoo/addons/16.0', '/mnt/pool']
2026-09-10 04:02:20,790 1 INFO ? odoo: database: odoo@pg:5432
2026-09-10 04:02:21,107 1 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf
2026-09-10 04:02:21,444 1 INFO job_32a1a57dabd6 odoo.modules.loading: loading 1 modules...
2026-09-10 04:02:21,464 1 INFO job_32a1a57dabd6 odoo.modules.loading: 1 modules loaded in 0.02s, 0 queries (+0 extra)
2026-09-10 04:02:21,525 1 INFO job_32a1a57dabd6 odoo.modules.loading: updating modules list
2026-09-10 04:02:21,530 1 INFO job_32a1a57dabd6 odoo.addons.base.models.ir_module: ALLOW access to module.update_list on [] to user __system__ #1 via n/a
2026-09-10 04:02:54,426 1 INFO job_32a1a57dabd6 odoo.addons.base.models.ir_module: ALLOW access to module.button_install on ['Odoo FastAPI'] to user __system__ #1 via n/a
2026-09-10 04:02:55,759 1 INFO job_32a1a57dabd6 odoo.modules.loading: loading 8 modules...
2026-09-10 04:02:56,282 1 INFO job_32a1a57dabd6 odoo.modules.loading: 8 modules loaded in 0.52s, 0 queries (+0 extra)
2026-09-10 04:02:56,285 1 INFO job_32a1a57dabd6 odoo.modules.loading: loading 10 modules...
2026-09-10 04:02:56,286 1 INFO job_32a1a57dabd6 odoo.modules.loading: Loading module endpoint_route_handler (2/10)
2026-09-10 04:02:56,383 1 INFO job_32a1a57dabd6 odoo.modules.registry: module endpoint_route_handler: creating or updating database tables
2026-09-10 04:02:56,576 1 INFO job_32a1a57dabd6 odoo.modules.loading: loading endpoint_route_handler/security/ir.model.access.csv
2026-09-10 04:02:56,622 1 INFO job_32a1a57dabd6 odoo.addons.endpoint_route_handler.post_init_hook: Create table
2026-09-10 04:02:56,643 1 INFO job_32a1a57dabd6 odoo.addons.endpoint_route_handler.registry: endpoint_route table set up
2026-09-10 04:02:56,654 1 INFO job_32a1a57dabd6 odoo.modules.loading: Module endpoint_route_handler loaded in 0.37s, 87 queries (+87 other)
2026-09-10 04:02:56,654 1 INFO job_32a1a57dabd6 odoo.modules.loading: Loading module fastapi (3/10)
2026-09-10 04:02:57,282 1 CRITICAL job_32a1a57dabd6 odoo.modules.module: Couldn't load module fastapi
2026-09-10 04:02:57,282 1 CRITICAL job_32a1a57dabd6 odoo.modules.module: unsupported operand type(s) for |: 'type' and 'NoneType'
2026-09-10 04:02:57,285 1 WARNING job_32a1a57dabd6 odoo.modules.loading: Transient module states were reset
2026-09-10 04:02:57,285 1 ERROR job_32a1a57dabd6 odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
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 493, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 374, in load_marked_modules
loaded, processed = load_module_graph(
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 190, in load_module_graph
load_openerp_module(package.name)
File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 471, in load_openerp_module
__import__('odoo.addons.' + module_name)
File "/mnt/pool/fastapi/__init__.py", line 1, in <module>
from . import models
File "/mnt/pool/fastapi/models/__init__.py", line 1, in <module>
from .fastapi_endpoint import FastapiEndpoint
File "/mnt/pool/fastapi/models/fastapi_endpoint.py", line 16, in <module>
from ..middleware import ASGIMiddleware
File "/mnt/pool/fastapi/middleware.py", line 19, in <module>
from .pools import event_loop_pool
File "/mnt/pool/fastapi/pools/__init__.py", line 2, in <module>
from .fastapi_app import FastApiAppPool
File "/mnt/pool/fastapi/pools/fastapi_app.py", line 17, in <module>
class FastApiAppPool:
File "/mnt/pool/fastapi/pools/fastapi_app.py", line 124, in FastApiAppPool
def invalidate(self, env: Environment, root_path: str | None = None) -> None:
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
2026-09-10 04:02:57,288 1 CRITICAL job_32a1a57dabd6 odoo.service.server: Failed to initialize database `job_32a1a57dabd6`.
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 493, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 374, in load_marked_modules
loaded, processed = load_module_graph(
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 190, in load_module_graph
load_openerp_module(package.name)
File "/usr/lib/python3/dist-packages/odoo/modules/module.py", line 471, in load_openerp_module
__import__('odoo.addons.' + module_name)
File "/mnt/pool/fastapi/__init__.py", line 1, in <module>
from . import models
File "/mnt/pool/fastapi/models/__init__.py", line 1, in <module>
from .fastapi_endpoint import FastapiEndpoint
File "/mnt/pool/fastapi/models/fastapi_endpoint.py", line 16, in <module>
from ..middleware import ASGIMiddleware
File "/mnt/pool/fastapi/middleware.py", line 19, in <module>
from .pools import event_loop_pool
File "/mnt/pool/fastapi/pools/__init__.py", line 2, in <module>
from .fastapi_app import FastApiAppPool
File "/mnt/pool/fastapi/pools/fastapi_app.py", line 17, in <module>
class FastApiAppPool:
File "/mnt/pool/fastapi/pools/fastapi_app.py", line 124, in FastApiAppPool
def invalidate(self, env: Environment, root_path: str | None = None) -> None:
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
2026-09-10 04:02:57,290 1 INFO job_32a1a57dabd6 odoo.service.server: Initiating shutdown
2026-09-10 04:02:57,290 1 INFO job_32a1a57dabd6 odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown.
2026-09-10 04:02:57,292 1 INFO job_32a1a57dabd6 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