Skip to Content
19.0 0
Live Preview
Required Apps Discuss (mail)
Technical Name odoo_json_rpc
License OPL-1
You bought this module and need support ? Click here!
Technical Name odoo_json_rpc
License OPL-1

Introduction

The JSON-RPC API module for Odoo offers a robust, standardized way to interact with Odoo from external systems using JSON-RPC. Rather than relying solely on XML-RPC or custom REST endpoints, this module centralizes RPC calls over JSON, allowing clients to call model methods (search, read, write, create, unlink) and custom business logic in a consistent format. It respects Odoo’s permission rules, record rules, and security layers—preserving integrity and control during integration.

Key Features

  • Provide a JSON-RPC endpoint for Odoo allowing CRUD operations on models

  • Support calling arbitrary model methods (execute_kw style) via JSON requests

  • Maintain Odoo’s built-in access control, record rules, and ACL enforcement

  • Return structured JSON responses including errors, result, and context

  • Support batching or multiple RPC calls per request (if implemented)

  • Compatibility with JSON-RPC client libraries in various languages

Benefits

  • Provides a lightweight, language-agnostic API for external integration

  • Simplifies building external applications, services or mobile clients that interact with Odoo

  • Centralizes access through a controlled RPC interface, reducing need for many REST endpoints

  • Respects security model, so integrations can't circumvent permissions

  • Enables faster setup of integrations without custom endpoints per model

Compatibility & Technical Details

  • Technical Name: odoo_json_rpc

  • Required Modules: Base / Core (rpc, http), Web / JSON controllers

  • License: As declared in the module manifest (likely Odoo Proprietary or OPL)

  • Installation Steps:

    1. Install the JSON-RPC module in your Odoo instance.

    2. Ensure web / RPC configuration allows POST requests to the JSON-RPC endpoint.

    3. Configure access rights so that API users have appropriate model permissions.

    4. Use the JSON-RPC API endpoint (e.g. /jsonrpc) to send requests such as authenticate, execute (object calls), etc.

    5. Handle JSON responses including result or error structures.

ODOO JSON RPC

Access Odoo's Method and Data anytime, anywhere through JSON

This module provides an API to access records by using Odoo's default methods or even custom methods created in Odoo by using JSON. So what is new about JSON? Let us help you understand benefits of using JSON.

Authenticate
Generate Token
Access Odoo Data
https://wa.me/message/VENRAJRHMSWEB1 OR
  • Lightweight
  • Easy Integratoin
  • Fast Processing
  • Easy Response Handling
  • Easy to parse
  • Reliable
  • More compact than XML and can be easily loaded
  • More structural information in form of dictionary

1. Setup for Token

Initially, we need to generate a token, i.e an authentication key that will be used to perform various operations to Odoo data. Once token will be generated it can be seen in Odoo Settings alog with that user details.

authenticate_url = 'http://localhost:7019/json-call/user_authenticate'
headers = {
'Content-Type': "application/json",
}
data = {
"jsonrpc": "2.0",
"params": {
"login": "admin",//Odoo User name
"password": 'admin',//Password of user
"db": 'odoo_databases',//
}
}

2. Setup Token

Once you will recive token from json request as like above image just go to the Setting -> JSON RPC -> Token. Set the token and user fields.

3. Creating Records

When creating any record, send an JSON call to the server with required details and the token that has been generated. Define the model name of which any record has to be created and the data that has to be set. Once the call to server will be made through JSON, it will return the ID of record from Odoo.

4. Created records in Odoo

Created records in Odoo.

5. Editing Records

Records can be altered from the JSON call, we just have to pass write method and ID of that particular record that has to be changed along with the changes we want to change.

6. Edited record in Odoo

With just a single call of API, Record can be altered as per requirement. In the image, Record has been updated with email id.

7. Removing Records

To remove any record, just make a API call to Odoo server with unlink method and the ID of record that has to be removed. It will return response as 'True' once record will be deleted.

  • We are provide 90 days bug free support related to our module.
  • The support team is availbale from Monday to Friday 10:00 AM to 07:00 PM (IST).
  • To create ticket send email to [email protected].

What is the full form of JSON RPC?

JavaScript Object Notation (JSON) Remote Procedure Call (RPC).

What is JSON-RPC used for?

JSON-RPC is a remote procedure call (RPC) protocol which is used to communicate with apps which you run in your computer/system. The HTTP protocol is used for remote procedure calls, and JSON for data representation. It's written in JavaScript.

Will I need to code to use this app?

Yes

For more details on how to use this module, you can find attached PDF file from below path:

odoo_json_rpc
static
description
Technical Document - Odoo JsonRpc.pdf
Odoo Proprietary License v1.0
This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.