Skip to Content
Menu
This question has been flagged
1 Reply
1591 Views

Hello

I've been trying to "communicate" with my odoo database by a Python script seen below, and after running the script, I get the error "unsupported XML-RPC protocol", While the xmlrpc.client seems to be already installed on my local computer.


Here is the code:


url = "mydburl\\.com"

db\ =\ 'mydb'

username\ =\ 'admin'

password\ =\ 'admin'

import\\ xmlrpc\\.client

common\ =\ xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))

version = common.version()

print("details...", version)

Avatar
Discard
Best Answer

Hi,

Please refer the below forum answer, It provides details on how to connecting to an Odoo 16 database from Python 

https://www.odoo.com/sl_SI/forum/pomoc-1/connecting-to-an-odoo-16-database-from-python-221917


Hope it helps

Avatar
Discard