From dc296afac29a5a716b162ecef7d4a296399c2da3 Mon Sep 17 00:00:00 2001 From: Adrien Widart <awt@odoo.com> Date: Tue, 11 May 2021 10:51:01 +0000 Subject: [PATCH] [FIX] web: remove bottom border of first table raw When using the boxed layout, if the business document has a table, its first row (after the table head) will have a bottom border and the last cell in the row has a white background. To reproduce the error: (Need timesheet_grid. Use demo data) 1. In Settings > General Settings, Change Document Template: - Select the second template 2. In Timesheets, select list view 3. Select several lines 4. Print > Timesheet Entries Error: In PDF, the first timesheet line has a bottom line and its last cell has a white background (instead of grey). The bottom line should only be applied on row in table header. The background color should also be applied on first row in table body. OPW-2478311 closes odoo/odoo#70746 X-original-commit: 88a10bdd8f1d46a8b52be59fe3284cbe284a74f2 Signed-off-by: Adrien Widart <adwid@users.noreply.github.com> --- addons/web/static/src/scss/layout_boxed.scss | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/web/static/src/scss/layout_boxed.scss b/addons/web/static/src/scss/layout_boxed.scss index 94c243777d9c..4055994dcef1 100644 --- a/addons/web/static/src/scss/layout_boxed.scss +++ b/addons/web/static/src/scss/layout_boxed.scss @@ -74,18 +74,18 @@ background-color: gray('200'); } /* compat 12.0 */ - .row:not(#total) > div > table tr:not(:first-child):not(:last-child) td:last-child { + .row:not(#total) > div > table tbody tr:not(:last-child) td:last-child { background-color: gray('200'); } /*Total table*/ /* row div rule compat 12.0 */ .row > div > table, div#total table { + thead tr:first-child, + tr.o_subtotal { + border-bottom: 1px solid gray('700'); + } tr { - &:first-child, - &.o_subtotal { - border-bottom: 1px solid gray('700'); - } &.o_subtotal{ td:first-child { border-right: none; -- GitLab