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
Odoo Training Center
|Asked: 9/9/16, 12:40 PM|
|Seen: 631 times|
|Last updated: 2/27/17, 4:48 PM|