跳至内容
菜单
此问题已终结
2 回复
4718 查看

Hiii,


i have one report. inside report i am printing product information but due to too long product description odoo leave space and print product on next page. 

i have to avoid this page break and display product without page break. it is fine if it break content and display on next page.

Also looking wired for first page if product description is long and not fit in first page. 

if anyone have any idea please help me.

thanks,

形象
丢弃
最佳答案

Hi,

You can resolve the overlapping content with repeating table header by adding display: table-row-group style to your table header as follows: 

thead style="display: table-row-group"



This is the method Odoo followed to resolve the problem the long text and overlapping.

Thanks

形象
丢弃
最佳答案

Hi,




You could avoid a page break in QWeb using something like this:

<div style="page-break-before: avoid;">
   ...
</div>

use page-break-before or page-break-after, page-break-inside and you could do a conditional break, wrapping that snippet in a "t-if" statement




Hope it helps

形象
丢弃
相关帖文 回复 查看 活动
0
11月 24
928
0
5月 24
1762
2
5月 24
3478
3
2月 24
2972
2
11月 22
5835