コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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
2565
1
12月 20
3621
1
1月 16
6214
1
12月 19
5936
0
3月 25
1677