Odoo Help

0

How to call onchane from XMLRPC in odoo

By
Shivam
on 2/9/16, 7:15 AM 498 views

i want call onchange method from xmlrpc 

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

1
Jo
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.

Register

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)

Stats

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