Odoo Help


Revert @api.onchange or access original value

sharon shen
on 9/9/16, 12:40 PM 261 views

How do we revert the value of the parameter changed by @api.onchange. Or get the original value back.

I'm on odoo Version 9.



def on_carrier_changed(self):

    if something:

        # give some warning & do some logic

        # revert back carrier_id


sharon shen
On 12/16/16, 2:43 PM

Hi no i didn’t find an answer to that question, but my coworker suggested to change the way I do things to eliminate needing to go into onchange: Doing validation in other area, using domain filter to filter out values I don’t want…etc

Peter Schwarz
On 12/16/16, 8:54 AM

I'm too new to this forum to post a commentary so please forgive me my 'answer'.

Have you found any solution? I am searching for about an hour now and I cannot find any way how to solve it!

Thank you!

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 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: 9/9/16, 12:40 PM
Seen: 261 times
Last updated: 12/16/16, 2:43 PM