跳至内容
菜单
此问题已终结
1369 查看

i have enterprise account and i want to use API External , when i use it on the Test Enviroment ,it said access Denied .

here is my python script :
import xmlrpc.client
url = 'https://mylink.dev.odoo.com'
db = 'mylink.dev'
username = 'akram.mokhtar@raiftextile.com'

password = 'my api key'
common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))
uid = common.authenticate(db, username, password, {})
try :    if uid:        print("authentication success")    else:        print("authentication failed")
except Exception as e:    print(f"Error during authentication: {e}")
 
can i know why it said authentication failed ,and how to fix it?

形象
丢弃
相关帖文 回复 查看 活动
3
2月 24
3123
1
5月 23
2528
1
2月 24
2129
0
1月 24
1522
0
8月 24
1919