October 2019
Beginner to intermediate
504 pages
12h 57m
English
Sometimes, you want to connect to Odoo's data from an external application. The Odoo API is useful for these scenarios. It utilizes XML-RPC, which is a protocol for remote procedure calls, and it uses XML syntax to connect with the data on an Odoo server.
You can access Odoo's API via languages such as Python, Ruby, PHP, and Java. Let's look at an example in Python 3. (If you don't have Python installed already, go to http://www.python.org/download.) Pull up your Python Terminal and type the following:
import xmlrpc.clientinfo = xmlrpc.client.ServerProxy('https://demo.odoo.com/start').start()url,db,username,password=\ info['host'],info['database'],info['user'],info['password']
If you've been following ...
Read now
Unlock full access