Skip to content
Snippets Groups Projects
Commit dc296afa authored by Adrien Widart's avatar Adrien Widart
Browse files

[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: 88a10bdd
Signed-off-by: default avatarAdrien Widart <adwid@users.noreply.github.com>
parent 5145c97f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment