Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1353 Ansichten

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
3
Feb. 24
3110
1
Mai 23
2501
1
Feb. 24
2110
0
Jan. 24
1509
0
Aug. 24
1916