Odoo Help

0

How to set a margin-top to the content of a RML report?

By
Juan Formoso
on 11/5/14, 12:20 PM 1,387 views

I am printing a report with a table with a lot of lines. For this reason, the table is splitted if it does not fit in one page.

The problem is that in every page, the table is totally sticked to the external header, which does not look very good.

I would like to know how I can set a margin-top for the content of the report in every page (to separate the content from the external header).

I tried to set frames, but they are being ignored. Any idea of how to do this?

I leave my code here, to check what I am doing wrong:

<?xml version="1.0"?>
<document filename="Links.pdf">
  <template title="Links" showBoundary="1" allowSplitting="20">
    <pageTemplate id="first">
      <frame id="first" x1="1cm" y1="1cm" height="4cm" width="18cm"/>
      <frame id="second" x1="1.5cm" y1="1.0cm" width="18cm" height="7.0cm"/> 
    </pageTemplate>
  </template>
  <story>
    <para>
      <font color="white"> </font>
    </para>
    <nextFrame/>
    <blockTable colWidths="480.0" repeatRows="1">
      <tr>
        <td>
          <para style="terp_tblheader_General_Centre">Category</para>
        </td>
      </tr>
      <tr>
        <para style="terp_default_8">[[ repeatIn(objects,'o') ]]</para>
        <para style="terp_default_8">[[ setLang(o.lang) ]]</para>
        <td>
          <para>[[ o.link_category_id.name or '' ]]</para>
          <para>
            <font color="white"> </font>
          </para>
        </td>
      </tr>
    </blockTable>
  </story>
</document>

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: 11/5/14, 12:20 PM
Seen: 1387 times
Last updated: 3/16/15, 8:10 AM