Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
12226 มุมมอง

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)

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ก.ย. 21
11236
2
ก.ค. 24
1054
2
มี.ค. 24
3220
Odoo Mail Sending Limit แก้ไขแล้ว
2
ธ.ค. 23
14209
0
ต.ค. 23
33