Vertical table borders overlap header table on second page (wkhtmltopdf multi-page issue)
I am using Odoo 16 with a custom QWeb PDF report for purchase.order.
When the report has multiple pages, the vertical borders of the line items table overlap the header table on page 2.
It looks like wkhtmltopdf redraws the vertical lines incorrectly when the page breaks.
What happens
Page 1 renders correctly
On page 2:
Report declaration
Template Structure
|
Page
of
|
|
PURCHASE ORDER(PO)
MEMO PURCHASE ORDER
|
To :
Delivery Address :
|
|
|
|
|
|
|
|
|
|
|
|
|
Term of Payment
|
: |
|
|
Term of Delivery
|
: |
|
|
Mode of Delivery
|
: |
|
|
|
| No. |
Description |
Qty |
Unit Price |
Amount |
|
|
|
|
|
|
|
|
Sub Total |
|
|
Discount |
|
|
Sub Total After Disc. |
|
|
PPN 11%
Freight Cost
|
|
|
TOTAL |
|
Note :
| Terima kasih atas perhatian dan kerjasamanya |
| Hormat Kami, |
PT JAKARTA PRIMA CRANES
(_________________________)
|
|
Dikonfirmasi Oleh,
(_________________________)
|
What I already tried
border-collapse: collapse
Removing border-left/right
Using border: 1px solid #000
page-break-inside: avoid
Removing @page CSS
Using only one main table
Issue still happens only on page 2+.