Skip to content
Snippets Groups Projects
Commit 5850d36d authored by Jorge Pinna Puissant's avatar Jorge Pinna Puissant Committed by fw-bot
Browse files

[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#40580

X-original-commit: d040f02dd0140d9b7128e806e4a974fe1e8aa0d3
Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent 7383452f
Branches
Tags
No related merge requests found
......@@ -38,6 +38,7 @@ var SectionAndNoteListRenderer = ListRenderer.extend({
}
$cell.attr('colspan', nbrColumns);
} else {
$cell.removeClass('o_invisible_modifier');
return $cell.addClass('o_hidden');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment