Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
12686 Widoki

Hi am trying to connect odoo via Rest API all the credentials was correct still am getting this error. Xmlrpc is working fine. 

import requests

url = 'http://x.x.x.x:8069'

headers = {
'content-type': 'application/json',
'charset':'utf-8'
}

username = 'admin'

data = {
'params':{
'fields': ['id','password'],
'domain': [('login','=', username)],
}

session = requests.Session()

​try:
    session.get('%s/api/res.users'%url, data=data, headers=headers)
except ConnectionError as ce:
    print(ce)

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
wrz 21
11490
2
lip 24
1364
2
mar 24
3584
2
gru 23
14890
0
paź 23
33