Extra information
System documentation: Odoo External RPC API DocumentationConnector Package Documentation
Table of Contents
- 1. Setting up HTTP Client
- 1.1 Steps
- 2. Subscribing to Entities from Odoo through XML-RPC
- 2.1 Steps
- 2.2 General Concept
- 3. Publishing Entity to Odoo through XML-RPC
- 3.1 Steps
- 3.2 General Concept
1. Setting up HTTP Client
1.1 Steps
- In Alumio Dashboard, go to Clients > HTTPS Client. Create a new HTTP Client and select Odoo XML-RPC HTTP Client as the prototype of the HTTP Client.
- Fill in the Base URI, Database, Username, and Password.
2. Subscribing to Entities from Odoo through XML-RPC
2.1 Steps
- Go to Connections -> Incoming and create a new incoming configuration and select Odoo XML-RPC Subscriber as the subscriber.
- Fill in the Request URI field with
/xmlrpc/2/commonor/xmlrpc/2/object. - Fill in the Model Name field with the model you want to fetch.
- Fill in the Method Name field with the method name you want to call.
- Add any request parameters needed to subscribe to the entity (optional).
- You can optionally add a transformer to transform the request parameters into something you need.
- Select the Odoo XML-RPC HTTP Client to use.
2.2 General Concept
We follow Odoo XML-RPC documentation on building this connector so you can easily use the connector based on the Odoo External API Documentation. Request URI It’s the URI you want the RPC call to be made to Odoo. There are only two URIs, they are/xmlrpc/2/common or /xmlrpc/2/object.
Model Name
The name of the model you want to subscribe to from Odoo.
Method Name
The name of the method you want to execute in Odoo through the XML-RPC.
Request Parameters
These are the parameters you can provide to get the needed entity based on the Odoo External RPC API Documentation. Please look at the example below on how to fill the Request Parameters field when subscribing Single Request entity

3. Publishing Entity to Odoo through XML-RPC
3.1 Steps
- Go to Connections -> Outgoing, create a new outgoing configuration, and select Odoo XML-RPC Publisher as the publisher.
- Select the action that you want the publisher to do with the data.
- Select the Odoo XML-RPC entity you want the data to be published.
- Select the HTTP Client to use.
3.2 General Concept
Like the subscriber, the publisher has similar methods on how to use it. The difference is the payload that will be submitted by the publisher originating from the data (from routes, from transformers in outgoing configuration). Request URI It’s the URI you want the RPC call to be made to Odoo. There are only two URIs. They are/xmlrpc/2/common or /xmlrpc/2/object.
Model Name
The name of the model you want to subscribe to from Odoo.
Method Name
The name of the method you want to execute in Odoo through the XML-RPC.

payload property in the data. Here is an example of the Possible Response after Creation.

NOTES




