diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-05-10 13:22:20 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-05-11 15:09:25 +0200 |
| commit | 23beee818a3efc1de9a39812af4f4069cb924094 (patch) | |
| tree | 8db4f6f2658204334e5d8911c78e51393fbd740d /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | ef643783a5aee2070fc5f3009b5a9a94d8b8c596 (diff) | |
[FIX] web: do not lose field/label pair on field rerendering
When a field widget switches between readonly and editable states, it is
fully rerendered. Labels have sometimes to get a specific class when
their associated field is (become) readonly and without any value. This
condition was evaluated on the initial widget and not on rerendered
ones.
Note that this commit only restores an already implemented behavior
broken by https://github.com/odoo-dev/odoo/commit/8f9362809e91ff7c2876ab464017abb13a4e0974
... but this time a test will prevent a new breaking
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
