Vertical table borders overlap header table on second page (wkhtmltopdf multi-page issue)
02:54 13 Feb 2026

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:

    • thead repeats correctly

    • But vertical borders from the line table extend upward and overlap the header table above it

      Paperformat

      
          PO A4 Format
          
          A4
          Portrait
          45
          70
          7
          7
          
          37
          90
      
      

    Report declaration

    
    
Template Structure




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+.

odoo pdf-generation wkhtmltopdf qweb odoo-16