[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>
This commit is contained in:
committed by
fw-bot
parent
8f7cad7d38
commit
730309caa5
@@ -38,6 +38,7 @@ var SectionAndNoteListRenderer = ListRenderer.extend({
|
||||
}
|
||||
$cell.attr('colspan', nbrColumns);
|
||||
} else {
|
||||
$cell.removeClass('o_invisible_modifier');
|
||||
return $cell.addClass('o_hidden');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user