Odoo Qweb生成的pdf报告显示第二页的地址和表行重叠 [英] Odoo Qweb generated pdf report shows overlapping of the address and table rows of 2nd page

查看:408
本文介绍了Odoo Qweb生成的pdf报告显示第二页的地址和表行重叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

生成发票时,客户地址应该重叠,并且发票超过一页时,表标题和行会相互覆盖.使用最新的Odoo系统,并且已经将WKHTMLTOPDF库更新为最新的稳定版本0.12.2.1

When generating an invoice there is overlapping where the customer address should be and in cases where the invoice is more than one page, the table header and rows write over each other. Using the latest Odoo system and have already updated the WKHTMLTOPDF library to the latest stable release, 0.12.2.1

推荐答案

这是多页PDF中表行与表头之间重叠的正确解决方案

在CSS修复程序中添加以下内容

thead {显示:table-header-group}
tfoot {display:table-row-group}
tr {page-break-inside:避免}或style ="page-break-inside:避免;"

This is the correct Solution for overlapping between table row and table header in multi page PDF

Adding the following in the CSS fixes

thead { display: table-header-group }
tfoot { display: table-row-group }
tr { page-break-inside: avoid } or style="page-break-inside: avoid;"

这篇关于Odoo Qweb生成的pdf报告显示第二页的地址和表行重叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆