Odooly - client for Odoo¶
The Odooly library communicates with any Odoo server using the Webclient API.
If an api_key is configured, it will use the JSON-2 endpoint with Odoo 19.
If a session_id is provided, it will reuse this browser session (e.g. OAuth sign-in).
It can also connect through the deprecated external RPC interface (JSON-RPC).
It provides both a fully featured low-level API, and an encapsulation of the methods on Active Record objects. It implements the Odoo ORM API. Additional helpers are provided to explore the model and administrate the server remotely.
The Introduction describes how to use it within a Python interactive shell.
The Tutorial gives an in-depth look at the capabilities.
Authentication methods per Odoo version, and per API:
Odoo \ API |
Webclient |
Public |
JSON-2 |
JSON-RPC |
XML-RPC |
|---|---|---|---|---|---|
22.0 + |
Login 2FA
or Login
|
no-auth |
API Key |
||
19.0 to 21.0 |
Login 2FA
or Login
|
no-auth |
API Key |
API Key (deprecated)
Login (deprecated)
|
|
14.0 to 18.0 |
Login 2FA
or Login
|
no-auth |
API Key
or Login
|
API Key
or Login
|
|
8.0 to 13.0 |
Login |
no-auth |
Login |
Login |
|
6.1 and 7.0 |
Login |
no-auth |
Login |
||
Note
So called Public API is available without authentication. For
example /web/webclient/version_info. The /web/database/*
endpoints are public, although they require the Master password as argument.
Note
As an alternative to Login, the Webclient API accepts the session_id
cookie of a browser session, with Client.login() or the
--session-id command line option. It is useful when password login is
disabled, for example with OAuth sign-in. The session is shared: Odooly
does not log out, unless Env.session_destroy() is called.
Env.sudo() turns the browser session into a Superuser session.
Contents:
Online documentation: https://odooly.readthedocs.io/
Source code and issue tracker: https://github.com/tinyerp/odooly
Indices and tables¶
Credits¶
Authored and maintained by Florent Xicluna.