Odoo Help

0

How to align a blockTable in rml reports ?

By
PY
on 3/11/14, 6:42 AM 2,538 views

Hi !

Currently I'm toying with the rml language, and so far, the only way to align a blockTable when I use colWidths, (colWidths resize the columns, and let the table centred in the middle of the page...) is by add an empty column (left for right align, for example).

Do anyone know a better way to do this ?

Thanks

0

René Schuster

--René Schuster--
1585
| 5 5 8
Weinheim, Germany
--René Schuster--

Challenge Everything!

René Schuster
On 3/11/14, 7:08 AM

Simply use the alignment attribute in your blockTable or its blockTableStyle.

<blockTable alignment="RIGHT">
</blockTable>

<blockTableStyle id="aligned_table">
    <alignment>RIGHT</alignment>
</blockTableStyle>

Regards

I don't want to align the content, but the table itself.

PY
on 3/11/14, 7:38 AM

As far as I can see, the attribute for content alignment is <blockAlignment>.

<alignment> should align the floatable.

As work around try to embed your table in an aligned paragraph, or sth.

René Schuster
on 3/11/14, 7:49 AM

Yeah, it should, but it doesn't :/ Either with your both examples, it doesn't work with me. Ok, I will try this.

PY
on 3/11/14, 7:50 AM

Nope, nothing's working. A para tag display table like plain text. And other tags display nothing at all. I think I'll have to stay with empty columns.

PY
on 3/11/14, 8:10 AM

Yes, that would have been my next suggestion :/

Sorry.

René Schuster
on 3/11/14, 8:13 AM

Np, thanks anyway :)

PY
on 3/11/14, 8:32 AM

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

0 follower(s)

Stats

Asked: 3/11/14, 6:42 AM
Seen: 2538 times
Last updated: 3/16/15, 8:10 AM