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 print several rectangles on RML?

Juan Formoso
on 3/2/15, 9:58 AM 421 views

I did a report in which I show a rectangle.

I would like to make a repeatIn and print a rectangle in each loop. It seems to be easy, but when I print a rectangle, I have to specify the X and Y positions where I want to print the rectangle. Is there any way to print one close to the next one and change line if necessary?

Like this (supposing |_| is a rectangle):

|_| |_| |_| |_| |_| |_| |_| |_| |_| |_| 

|_| |_| |_| |_|

My code:

<para style="terp_default_8">[[ repeatIn(objects,'o') ]]</para>
<para style="terp_default_8">[[ setLang(o.lang) ]]</para>

    <stroke color="black"/>
    <fill color="green"/>
    <rect x="???" y="???" width="50" height="50" fill="yes" stroke="yes"/>

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: 3/2/15, 9:58 AM
Seen: 421 times
Last updated: 3/16/15, 8:10 AM