import xmlrpc.client url = 'https://erp.domaine.org' db = 'bd_name' username = 'user' password = 'mdp' common = xmlrpc.client.ServerProxy('%s/xmlrpc/2/common' % url) models = xmlrpc.client.ServerProxy('{}/xmlrpc/2/object'.format(url)) uid = common.authenticate(db, username, password, {}) #print("Success: User id is", uid) print(common.version()) #ids = models.execute_kw(db, uid, password, 'res.partner', 'search', [[['is_company', '=', True]]]) #print(models.execute_kw(db, uid, password, 'res.partner', 'read', [ids], {'fields': ['name', 'country_id', 'comment']}))