콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1788 화면

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)

아바타
취소
베스트 답변

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

아바타
취소