Odoo Help


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.


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

Juan Formoso
on 11/5/14, 12:20 PM 1,145 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"/> 
      <font color="white"> </font>
    <blockTable colWidths="480.0" repeatRows="1">
          <para style="terp_tblheader_General_Centre">Category</para>
        <para style="terp_default_8">[[ repeatIn(objects,'o') ]]</para>
        <para style="terp_default_8">[[ setLang(o.lang) ]]</para>
          <para>[[ o.link_category_id.name or '' ]]</para>
            <font color="white"> </font>

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)


Asked: 11/5/14, 12:20 PM
Seen: 1145 times
Last updated: 3/16/15, 8:10 AM