Odoo Help


How to change the alignment of table in RML file?

on 1/12/16, 5:28 AM 1,080 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 5 8
Surat, India
--Jignesh Mehta--

- I have 3+ years of Industry Experience, specializing Odoo Development, Analysis, Customization, Implementation, Integration.
- I have done many Customization modules in Sale, Purchase, Point of Sale, Inventory, CRM and much more. Also Worked in the Odoo Themes like Business Theme or E-Commerce Theme.
- Develop Jewelery Manufacturing process from Scratch. It have more than 10 Department. Develop PDF and Excel reports for this project around 150 per format.

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

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.


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

1 follower(s)


Asked: 1/12/16, 5:28 AM
Seen: 1080 times
Last updated: 1/12/16, 10:59 PM