Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
# give some warning & do some logic
# revert back carrier_id
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
old values are in self._origin. Self only contains new values. Even self.id = openerp.models.NewId
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
|Asked: 9/9/16, 12:40 PM|
|Seen: 1310 times|
|Last updated: 2/27/17, 4:48 PM|