跳至内容
菜单
此问题已终结

Print layout problem when product description is too long.

please refer my screen cast:  

  http://goo.gl/bTevtH

  http://goo.gl/6U3OA2

order line printed in next page of the report if it have already space in first page this thing happen when description of product is too long.

Note: I printed this report from run

形象
丢弃
最佳答案

Hi,

You can add a wrap style for it 

example 1)


<p class="name-adjust ">
<t t-out="o.product_description"/>
   </p>


style 1:


.name-adjust{
    width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


OR


style 2:


.name-adjust{

    overflow: visible !important;
    text-overflow: ellipsis !important;
    white-space: normal;
}

形象
丢弃
最佳答案

Hello,

Please go to the Settings -> Technical -> Paper format and change output dpi 90 to 105 it will solve your issue.

if you not using specific format for report then change A4 paper format.

形象
丢弃
最佳答案

in such case you have to customize the report using xml:

try this code:

 <t t-if='product.product_description_sale'><div class="text-muted"  t-esc="product.product_description_sale[:70]+'..' if len(product.product_description_sale)&gt;72 else product.product_description_sale "/></t>

here i have restricted the size to be max of 72 character(if len(product.product_description_sale)&gt;72) , after that it will print "....."


形象
丢弃
相关帖文 回复 查看 活动
0
8月 24
2293
1
12月 20
3466
1
1月 16
6051
1
12月 19
5784
0
3月 25
1345