Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Help Connecting to Odoo.sh API with Download tool

Ossama59
5 - Atom

Hello everyone,

 

I'm new to Alteryx so excuse me if the this is an obvious question but is there anyway to connect to Odoo.sh api to request data from a module using the download tool?

 

 Currently I can connect using the python SDK tool using  XML-RPC as per this guide

and this working but I'm exploring other options if it could be easier or more maintainable!

example of working code currently:

 

 

import xmlrpc.client
common = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))
uid = common.authenticate(db, username, password, {})
models = xmlrpc.client.ServerProxy('{}/xmlrpc/2/object'.format(url))
data=models.execute_kw(db, uid, password, 'res.partner', 'search_read', [[]], {'fields':fields , 'limit': 5})
 
Appreciate any help.
0 REPLIES 0
Labels