Skip to Content
Menu
This question has been flagged
378 Views

Hi everyone,

 

I'm experiencing an issue with PDF report generation in Odoo. In one of my custom reports, the table header/title is overlapping with the table body content, making the report unreadable. 

This seems to happen when the content of the table spans across multiple pages or when there’s limited space on the page.

 

I’ve attached an image below to clearly show the issue.

 

Server Link - https://84480660-17-0-all.runbot254.odoo.com/web#id=391&cids=1&menu_id=935&action=592&active_id=2&model=account.move&view_type=form

I've already checked the QWeb report template and tried adding margins and page breaks, but it didn't help. Has anyone faced a similar issue or know how to fix this?

 

Any help or suggestions would be greatly appreciated!

 

Thanks in advance.

Avatar
Discard
Author

@Cybrosys , 

Thanks for sharing these tips! 🙌

I tried all 5 suggestions (including `page-break-inside: avoid;` on both `<tr>` and `<td>`, proper `<thead>` usage, and avoiding nested elements), but unfortunately I'm still running into alignment issues in the PDF output.

The content still splits across pages in some cases, especially with longer descriptions. Is there anything else I might be missing? Appreciate any further guidance!

Related Posts Replies Views Activity
2
Jul 25
35
1
Jul 25
365
2
Jul 25
554
1
Jul 25
1616
3
Apr 25
1679