March 2018
Beginner to intermediate
474 pages
12h 3m
English
Accessing the API is relatively easy. We begin with the code that imports the required libraries and creates a connection to the Odoo server:
import xmlrpclib
url = http://localhost:8069
db = SILK-DEV
username = 'admin'
password = 'admin'
info = xmlrpclib.ServerProxy('https://localhost:8089/start').start()
url, db, username, password =
info['host'], info['database'], info['user'], info['password']
Read now
Unlock full access