Se rendre au contenu
Menu
Cette question a été signalée

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

Avatar
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Meilleure réponse

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.

Avatar
Ignorer
Meilleure réponse

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


Avatar
Ignorer
Publications associées Réponses Vues Activité
0
août 24
2490
1
déc. 20
3577
1
janv. 16
6181
1
déc. 19
5886
0
mars 25
1543