Odoo Help

Welcome!

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.

0

How to align a blockTable in rml reports ?

By
PY
on 3/11/14, 6:42 AM 2,322 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--
1560
| 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

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

0 follower(s)

Stats

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