Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1359 Zobrazení

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?

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
úno 24
3113
1
kvě 23
2513
1
úno 24
2113
0
led 24
1514
0
srp 24
1918