Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
webkit report pages that overflow to the next page cut a line of the report in half. The top half of the line appears on the first page and the bottom half of the line appears on the second page.
This is a very known webkit bug called the "page-break bug"
What essentially happens is that when the page-break the wkhtmltopdf library does not take the actual element and separate it on one page or the other it just prints the content and split the pages causing the effect you want to avoid
The solution for this is to place the iterative content (order lines, invoice lines) whatever you loop over and extends the report over several pages into a
<div style="page-break-inside: avoid">
The css property "page-break-inside: avoid" works on divs and tables
<table style="page-break-inside: avoid"> for what I've tested which I think have the common property of being "block elements"
So if you use tables to generate the report place the content as such
Also make sure that the content in the header and footer is not larger than the actual margin you add (You can easily debug this by setting borders to the body in the header/footer and see if they are cut off).If the margins are not completly visible then just add margin until they are fully exposed to avoid content overshooting the header and overlapping with the mako
Hope this helps and anyone feel free to complete this answer and give feedback
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/16/13, 12:38 PM|
|Seen: 13420 times|
|Last updated: 12/2/15, 9:24 AM|