summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2019-09-19 08:22:33 +0000
committerAaron Bohy <aab@odoo.com>2019-09-25 06:16:53 +0000
commit7e72471552bf7879522eb3a9593d212e4780a40f (patch)
tree74f9bb0036e1026a38b961684751a5b0a29ffd9e /addons/web/static/src/js/fields/basic_fields.js
parent6b8acd025758b042cca39508bc8994a1307d1ccd (diff)
[FIX] web: correctly handle 'oe_read|edit_only' in lists
ClassNames 'oe_read_only' (resp. 'oe_edit_only') can be used in x2many lists to hide columns in 'edit' (resp. 'readonly') modes. However, before this rev., there were two issues: 1) Having such a className on a <button> tag didn't work well as the 'display: none' rule didn't apply on the body cell (it only applied on the button). Same could be observed on <widget> nodes. 2) Having more than one invisible column (with those classNames) didn't work either, because the footer cells weren't hidden. We didn't notice it with one invisible column, because the footer contained one cell less than the header and the body. Those two issues could be observed on the mrp.bom form view. Task 2068261
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions