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 change the alignment of table in RML file?

on 1/12/16, 5:28 AM 390 views

I set the alignment of table to left or right and I save and send to server. When I print the invoice report, the table is always in the center. So I am going to edit it from RML file but I don't know how to do this Please help me.

i have use this code,but table still in center


<blockTableStyle id="List_Order_Reference_Tbl">

<blockAlignment value="LEFT"/>

<blockValign value="TOP"/>




<blockTable colWidths="2cm,4cm,1cm,1cm" repeatRows="1" style="List_Order_Reference_Tbl"> 


<td><para style="terp_table_header">Qty</para></td> 

<td><para style="terp_table_header">Gol</para></td>

<td><para style="terp_table_header">Product</para></td> 

<td><para style="terp_table_header">Lokasi</para></td>




Jignesh Mehta

--Jignesh Mehta--
| 6 4 8
Surat, India
--Jignesh Mehta--

Jignesh Mehta
On 1/12/16, 10:59 PM

Hello Susi,

Add Below tag between <stylesheet> for style terp_table_header.



    <paraStyle name="terp_table_header" fontName="Helvetica" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/>


Hope that it works for you.


i have use that code, but table still in center

on 1/12/16, 11:01 PM

can you use terp_table_header style in the table instead of List_Order_Reference_Tbl

Jignesh Mehta
on 1/12/16, 11:39 PM

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: 1/12/16, 5:28 AM
Seen: 390 times
Last updated: 1/12/16, 10:59 PM