diff options
| author | Géry Debongnie <ged@odoo.com> | 2017-10-25 21:50:37 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2017-10-27 11:49:19 +0200 |
| commit | c163351e8a6776e046f04e6c264bf4372499dbba (patch) | |
| tree | 2507fc757ec5499c1edc41206529222d71da9688 /addons/web_editor | |
| parent | 416f8f6316c8021b566bdcbd5d6793235873692a (diff) | |
[FIX] web: revert to previous state when onchange fails
When an onchange fails (for example, because the onchange python code
raised a ValidationError, it is convenient to revert the form view to a
valid state, which is the previous state.
To do that, we keep in the _applyChange function the initial state, and
restore it in the case the onchange fails.
Diffstat (limited to 'addons/web_editor')
0 files changed, 0 insertions, 0 deletions
