Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

rml page break creating text formatting problems

By
vimal j
on 11/21/13, 3:24 AM 1,634 views

Hi all,

I tried creating page break in sales quotation form between terms and conditions and invoice lines using conditional page break in sales_order.rml. When i print the form, page break is getting introduced after the invoice lines but in the next page where terms and conditions is printed i can see white space after few lines and again the content gets printed in the next page. I dont know why this happens.

This is the necessary part of the code

      <para style="terp_default_Bold_9"><b>Total :</b></para>
    </td>
    <td>
      <para style="terp_default_Right_9_Bold"><b>[[ formatLang(o.amount_total, dp='Account', currency_obj=o.pricelist_id.currency_id) ]]</b></para>
    </td>
  </tr>
</blockTable>
<para style="terp_default_8">
  <font color="white"> </font>
</para>

<condPageBreak height="22.0cm"/>

<para style="terp_default_9">[[ format(o.note or '') ]]</para>
<blockTable colWidths="533.0" style="Table7">
  <tr>
    <td>
      <para style="terp_default_9">[[ format(o.payment_term and o.payment_term.note or (o.partner_id.property_payment_term and o.partner_id.property_payment_term.note or '')) ]]</para>
    </td>
  </tr>
</blockTable>
<para style="terp_default_8">
  <font color="white"> </font>
</para>

</pto> </story>

It would be helpful if some one can guide me to introduce page breaks without getting any formatting problems in rml.

Thank you

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 11/21/13, 3:24 AM
Seen: 1634 times
Last updated: 3/16/15, 8:10 AM