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 onchange from python xml rpc?

Drees Far
on 12/8/15, 7:59 AM 1,076 views

Hello everybody!!!!

Please, who can help me know how to call an onchange function from Python XMLRPC?

Thanks a lot in advance.

Krupesh Laiya
On 12/10/15, 7:12 AM

Hello you can call onchange in xmlrpc by following way:

you can call onchage method like other method i.e. create, wrire

for example:

onchage_val = object_of_xmlrpc.execute( 'model.name',

'method_name', and parameters



SO_onchage = object_of_xmlrpc.execute(


'onchange_partner_id',1, 30


where 1 is user_id,

30 is partner_id

Result = {'value': {'fiscal_position': False, 'user_id': 1, 'partner_shipping_id': 30, 'payment_term': 3, 'partner_invoice_id': 30, 'pricelist_id': 1}}

and for v8 it is call automatically when you pass you data in that particular onchange field.

hope so this will help you.

@krupesh i request you to give some example from reading data from excel file and add onchange event of odoo how to call onchange method from xmlrpc as per above example i can't get idea models.execute_kw(db, uid, password, 'style.product', 'product_id_change_event', userid, productid) using this example i can't read do that thing

on 2/1/16, 1:02 AM

@sarkar pls refer this link https://www.odoo.com/forum/help-1/question/where-are-document-attachments-stored-529

Krupesh Laiya
on 2/1/16, 1:19 AM

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: 12/8/15, 7:59 AM
Seen: 1076 times
Last updated: 12/10/15, 7:12 AM