From 730309caa5b0b47ca30af15a2632e18f34e44482 Mon Sep 17 00:00:00 2001 From: Jorge Pinna Puissant Date: Wed, 20 Nov 2019 12:49:02 +0000 Subject: [PATCH] [FIX] account: invisible modifier in hidden table cells MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit — In a SO, create a section or a note; — Add an invisible modifier (with studio for example). Before this commit, the table-cells of the section/note were not aligned any more, and the delete button (trash-can icon) wasn't available. In a list, the invisible modifier uses a display: table-cell to keep table cells aligned. But in this specific case, the display is already none, because they are hidden cells. Therefore, the invisible modifier it removes the display: none in the hidden cells, this has as outcome that the table cells are not aligned any more. Now, the hidden cells cannot have an invisible modifier. opw-2117714 closes odoo/odoo#40584 X-original-commit: d040f02dd0140d9b7128e806e4a974fe1e8aa0d3 Signed-off-by: Nicolas Lempereur (nle) --- addons/account/static/src/js/section_and_note_fields_backend.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/static/src/js/section_and_note_fields_backend.js b/addons/account/static/src/js/section_and_note_fields_backend.js index 8bece6a09ba..749d29fcd47 100644 --- a/addons/account/static/src/js/section_and_note_fields_backend.js +++ b/addons/account/static/src/js/section_and_note_fields_backend.js @@ -38,6 +38,7 @@ var SectionAndNoteListRenderer = ListRenderer.extend({ } $cell.attr('colspan', nbrColumns); } else { + $cell.removeClass('o_invisible_modifier'); return $cell.addClass('o_hidden'); } }