There's more...

The /xmlrpc/2/common endpoint provides one more method: version(). You can call this method without credentials. It will return version information of the Odoo instance. The following is an example of the version() method usage:

from xmlrpc import client

server_url = 'http://localhost:8069'
common = client.ServerProxy('%s/xmlrpc/2/common' % server_url)
version_info = common.version()

print(version_info)

The preceding program will give the following output:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset