XML-RPC connection for External API to create, read, write, delete (CRUD) record of Odoo through your own external third-party app or module using python programming language.
git clone https://github.com/Altela/odoo-api.git
url = 'https://yourDomain-or-yourIP'
db = 'yourDatabaseName'
username = 'yourOdooInternalUser'
password = 'yourPassword'
cd odoo-api
python3 -m your_file.py
There are two kind of files, it's Mandatory Files
and Query Files
.
This three files will be used to establish connection between your Odoo server and app you build. You just have to edit the connection.py
files as previous instruction tells you.
The connection.py
will pass the information to endpoint.py
. When you run the Query Files
, establish.py
will be triggered and requesting information from connection,py
and endpoint.py
. This will gives you credential to log into Odoo and execute the Queries.
This is the files that has queries to CRUD.
Contact App
Sales App
Inventory App
Purchase App
Memo App
Helpdesk App
Attendance App
If you wish to contribute, you can fork this repository, and please see this to-do lists.
For reference, here's the Odoo API Documentation & Odoo ORM API Documentation.
Create your script file and make a pull request.