Odoo Help


This community 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.


How to call onchane from XMLRPC in odoo

on 2/9/16, 7:15 AM 237 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]])

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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