summaryrefslogtreecommitdiff
path: root/addons/account/static/src/js/section_and_note_fields_backend.js
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2019-11-20 12:49:02 +0000
committerfw-bot <otis@odoo.com>2019-11-20 17:41:00 +0000
commit730309caa5b0b47ca30af15a2632e18f34e44482 (patch)
tree2e49cfd7509ca7e13846b4aa228a2176a3cd9267 /addons/account/static/src/js/section_and_note_fields_backend.js
parent8f7cad7d382b857570b158dce2c0a31e59508b35 (diff)
[FIX] account: invisible modifier in hidden table cells
— 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) <nle@odoo.com>
Diffstat (limited to 'addons/account/static/src/js/section_and_note_fields_backend.js')
-rw-r--r--addons/account/static/src/js/section_and_note_fields_backend.js1
1 files changed, 1 insertions, 0 deletions
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');
}
}