Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4667 Vistas

i want call onchange method from xmlrpc 

ex. sock.execute(dbname, uid, pwd, 'model name', 'method name', param)

Avatar
Descartar
Mejor respuesta

Hi sarkar,

I hope this will help you. Here i used sale.order

url = 'http://localhost:8069'
dbname = 'demo_db'
username = 'admin'
pwd = 'admin'
uid = 1

models = xmlrpclib.ServerProxy('{}/xmlrpc/2/object'.format(url))
models.execute_kw(dbname, uid, pwd,'sale.order', 'onchange_partner_id',[[],[1]])
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
dic 15
9484
1
ene 24
3051
1
oct 23
1875
2
oct 23
2110
2
ago 23
4088