Odoo Help

0

Varying table alignment while using pto and pto_header in rml

By
camp
on 7/28/15, 6:51 AM 895 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?

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

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