API Readiness Lite: XML-RPC and JSON-RPC Usage Before Odoo 20 and 22
by KVS https://kvs-soft.com/en/addons/api-readiness-lite/API Readiness Lite for Odoo
Free: see every script, connector and service that calls your Odoo through XML-RPC or JSON-RPC, and what to move to JSON-2 before Odoo 22 removes these endpoints.
Why now
Odoo 19 and later write a warning to the log on every call: the /xmlrpc, /xmlrpc/2 and /jsonrpc endpoints are deprecated and scheduled for removal in Odoo 22, and from Odoo 20 the db service is no longer served over them. The replacement is JSON-2 (POST /json/2/<model>/<method>, API key in the Authorization header, named arguments). This module shows which of your scripts, connectors and services still use the old endpoints, before an upgrade breaks them.
Standard Odoo Community and this module
| Feature | Odoo Community | API Readiness Lite (free) | API Readiness Pro |
|---|---|---|---|
| Count every XML-RPC and JSON-RPC call by user, model and method | — | ✓ | ✓ |
| Which API key or password each integration uses, from which IP address and client | — | ✓ | ✓ |
| Status of each call for Odoo 20 and 22, with what to change | — | ✓ | ✓ |
| JSON-2 example (curl and Python) built from your own call | — | ✓ | ✓ |
| All API keys with expiry, last use and alerts by email before they expire | — | — | ✓ |
| Integration users with their own API key in one step | — | — | ✓ |
| Per user: block, read only, allowed models, allowed IP addresses, calls per minute | — | — | ✓ |
| PDF report of what to move to JSON-2, per integration | — | — | ✓ |
Integrations
One line per caller: user, IP address and client, calls, calls to move, whether it logs in with a password.
Every call counted
Daily counters by protocol, model, method, user, API key, IP address and client, with errors and timing.
What breaks
Ready (JSON-2), removed in Odoo 22, uses a password (JSON-2 needs an API key), or already removed in Odoo 20 (db service).
JSON-2 examples
curl and Python for the same call, with positional arguments mapped to the names of the method arguments.
Safe samples
Arguments are kept short, passwords and tokens hidden; you can switch samples off.
Light
One small database write per call, nothing sent outside. Statistics older than 90 days (you choose) are deleted.
Integrations
Who calls your database and how ready each caller is for Odoo 22.
API calls
Every model and method called through XML-RPC and JSON-RPC.
What to change
The status, the advice and the same call in JSON-2.
Settings
Pause the recording, switch samples off, choose how long statistics are kept.
Setup
- Install the module. The menu API Readiness is for administrators (Settings rights).
- Let your integrations run as usual for a few days; each call is counted.
- Open API Readiness > Integrations: red and orange lines are the integrations to change before Odoo 22.
- Open a call to see what to do and the JSON-2 example; send it to whoever maintains the integration.
Need control over API keys and users?
API Readiness Pro ($39) adds a list of all API keys with expiry alerts, integration users with their own API key, per-user blocking, read-only access, allowed models and IP addresses, rate limits and a PDF report for Odoo 22.
Free, LGPL-3. Interface in English and Ukrainian. Depends on base_setup only.
More from KVS soft
KVS soft: what Odoo Community is missing.
Odoo 17–20 · Free Lite editions · Email support from the developer, reply within one business day · All KVS add-ons install together
Questions or a custom feature for your company: kvs.soft.contact@gmail.com · kvs-soft.com
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 895 |
| Technical Name |
api_readiness_lite_kvs |
| License | LGPL-3 |
| Website | https://kvs-soft.com/en/addons/api-readiness-lite/ |
Please log in to comment on this module