This question has been flagged

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
Discard
Best Answer

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
Discard
Best Answer

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
Discard
Best Answer

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
Discard