Ir al contenido
Menú
Se marcó esta pregunta
370 Vistas

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
Descartar
Autor

@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!

Publicaciones relacionadas Respuestas Vistas Actividad
2
jul 25
35
1
jul 25
347
2
jul 25
534
1
jul 25
1603
3
abr 25
1660