Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
1613 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer