-
- Downloads
[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
Showing
- addons/web/static/src/js/views/list/list_editable_renderer.js 11 additions, 0 deletions...ns/web/static/src/js/views/list/list_editable_renderer.js
- addons/web/static/src/js/views/list/list_renderer.js 25 additions, 8 deletionsaddons/web/static/src/js/views/list/list_renderer.js
- addons/web/static/tests/fields/relational_fields/field_one2many_tests.js 36 additions, 0 deletions...ic/tests/fields/relational_fields/field_one2many_tests.js
Loading
Please register or sign in to comment