Contributors mailing list archives
Re: Sale/invoice report break pageby
only thing I know is that it's possible to manually add "page-break-before: always;" to certain elements. So once you know how many rows fit on a page, you could adjust the QWEB generation to add page breaks at the right places. This doesn't take into account page margins however, so probably your way is better.
One of my customers using odoo 14.0 needs to get the control where page breaks appear in pdf reports on quotations and invoice documents.
Do you know any existing modules to do that ?
As sections are table rows it's not as easy to add a
page-break-inside: avoid;on a html block and would not fit all corner cases. So I'm going to add a link button (such as the add section) that will add a new kind of row to manage the break page in reports.
This probably ends up with 3 modules:
base_breakpage in oca/reporting-enginesale_report_breakpage in oca/sale-reportingaccount_invoice_report_breakpage in oca/account-invoice-reporting
Any hints on that ?regards