diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-02-10 11:49:05 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-02-10 11:49:05 +0100 |
| commit | b5971e417f304306a3be4d8bd0b1fe85ec381c1d (patch) | |
| tree | a58c653904e4f5b22a6066e9b6720d51d3cc24c5 /addons/web/static/src/js/framework/data_model.js | |
| parent | 06e9e45d03680b84d4f3b9aec016cf0b28b6d2cd (diff) | |
[FIX] web: hide list readonly checkbox when entering edition
Forward-port of https://github.com/odoo/enterprise/commit/8a55b3f9f7a7524583effb8198c03ebf695131bd
There are multiple problems with the editable view list. It should be
solved once and for all in the work-in-progress master.
This commit fixes a bug with readonly checkboxes. When a field is
readonly, the table cell gets the "o_readonly" class which changes
its style and behavior. When entering edition, the cells are hidden
except the ones with this "o_readonly" class so that their style are
not affected. The "o_readonly" cell content however was hidden thanks
to a "color: transparent;" rule to let the form readonly field show
the value. The problem is that checkboxes... are not hidden with this
"color: transparent;" rule. Also, the "o_readonly" class is not toggled
during edition while the readonly status could be... so the right fix
would be to get rid of this "o_readonly" class and let the inline form
handle the behavior, but this would affect style and possibly break
unknown behavior.
This fix adds rules to handle the checkbox case correctly.
Diffstat (limited to 'addons/web/static/src/js/framework/data_model.js')
0 files changed, 0 insertions, 0 deletions
