Odoo Help


How to call onchane from XMLRPC in odoo

Shivam Dudhat
on 2/9/16, 7:15 AM 677 views

i want call onchange method from xmlrpc 

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

On 2/10/16, 5:47 AM

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]])

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/9/16, 7:15 AM
Seen: 677 times
Last updated: 2/10/16, 5:47 AM