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

Varying table alignment while using pto and pto_header in rml

By
camp
on 7/28/15, 6:51 AM 509 views

I created a report in rml with pto and pto_header. Because there is so many records in a table so it will exceed to next page. and I want to repeat table header in next page, that's why i used pto and pto_header in my rml. It works fine, but problem is, the table in last page moving to right so that some fields are out of the page. Here is my code.


<pto>

<para style="P8">[[ repeatIn(objects,'o') ]]</para>

<para style="Standard">[[ setLang(o.partner_id.lang) ]]</para>

<para style="P3">

<font color="white"> </font>

</para>

<pto_header>

<blockTable colWidths="0.53in,0.44in,0.38in" repeatRows='1' style="Table6" rowHeights="0.30in" >

<tr>

<td>

<para style="P2">JOINT NOS</para>

</td>

<td>

<para style="P2">PIPE LENGTH</para>

</td>

<td>

<para style="P2">BODY COND</para>

</td>

</tr>

</blockTable>

<blockTable colWidths="0.53in,0.44in,0.38in" repeatRows='1' style="Table6" rowHeights="0.30in" >

<tr>

<td>

<para style="P2">JOINT NOS</para>

</td>

<td>

<para style="P2">PIPE LENGTH</para>

</td>

<td>

<para style="P2">BODY COND</para>

</td>

</tr>

</blockTable>

<section>

<para style="P7">[[repeatIn(sort(o.inspection_lines),'line')]]</para>

<para style="Standard">[[ setLang(o.partner_id.lang) ]]</para>

<blockTable colWidths="0.53in,0.44in,0.38in" repeatRows="1" style="Table6" rowHeights="0.13in" valign="MIDDLE">

<tr>

<td>

<para style="P7">

<font color="black">[[ line.name ]] </font>

</para>

</td>

<td>

<para style="P7">

<font color="black">[[ line.pipe_length ]] </font>

</para>

</td>

<td>

<para style="P7">

<font color="black">[[ line.body_condition ]] </font>

</para>

</td>

</tr>

</blockTable>

</section>

</pto>


Pleas give solution.. thanks in advance..

This is also my problem. I still don't get why this is happening. Did you manage to solve this?

Adreanne
on 9/29/16, 9:05 AM
0
Adreanne
On 9/29/16, 9:05 AM

This is also my problem. I still don't get why this is happening. Did you manage to solve this?

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

1 follower(s)

Stats

Asked: 7/28/15, 6:51 AM
Seen: 509 times
Last updated: 9/29/16, 9:05 AM