April 2019
Beginner to intermediate
774 pages
24h 59m
English
Perform the following steps to carry out user authentication through RPC:
from xmlrpc import clientserver_url = 'http://localhost:8069'db_name = 'test-12'username = 'admin'password = 'admin'common = client.ServerProxy('%s/xmlrpc/2/common' % server_url)user_id = common.authenticate(db_name, username, password, {})if user_id: print("Success: User id is", user_id)else: print("Failed: wrong credentials")
python3 odoo_authenticate.py
This will print a success message with the user ID if ...
Read now
Unlock full access