Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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

Awatar
Odrzuć
Najlepsza odpowiedź

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;
}

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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 "....."


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
sie 24
2518
1
gru 20
3589
1
sty 16
6192
1
gru 19
5903
0
mar 25
1572