Odoo Help


change color of text in rml report

on 10/23/13, 8:45 AM 3,283 views

I wan to change the colour of text in rml reports


Anil R. Kesariya

--Anil R. Kesariya--
| 7 6 8
Rajkot, India
--Anil R. Kesariya--

Odoo Techno Functional Expert

* Engaged with odoo since May - 2012.

* Customise existing module or develop new module base on customer requirement.

* Played key developer role in many past and running projects.

* Expert in requirement gathering of business and transforming requirement into odoo platform.

* Major expertise in core modules, database, report development and theme development.

* Integration expert.

Linkedin  : https://in.linkedin.com/in/anil-kesariya-97b20a66

Anil R. Kesariya
On 10/24/13, 3:58 AM

There are two ways to change text colors.

1) Directly for each record :

E.g.  :  As in above answer.

2) You can give style in all table. it will apply for all the rows in table.

E.g :  
  Note : I have defined the style for table for 5 columns .I can use this style in any table of rml report.     
  <blockTableStyle id="Table_Header_Tile">
  <blockAlignment value="LEFT"/>
  <blockValign value="TOP"/>
  <lineStyle kind="LINEBELOW" colorName="#000000" start="0,-1" stop="0,-1"/>
  <lineStyle kind="LINEBELOW" colorName="#000000" start="1,-1" stop="1,-1"/>
  <lineStyle kind="LINEBELOW" colorName="#000000" start="2,-1" stop="2,-1"/>
  <lineStyle kind="LINEBELOW" colorName="#000000" start="3,-1" stop="3,-1"/>
  <lineStyle kind="LINEBELOW" colorName="#000000" start="4,-1" stop="4,-1"/>
  <lineStyle kind="LINEBELOW" colorName="#000000" start="5,-1" stop="5,-1"/>

Note : The below is the table in which I have used the defined style . You defined specific color for each columns based on your req. You can define it in style.

<blockTable colWidths="57.0,192.0,71.0,71.0,71.0,71.0" style="Table_Header_Tile">
      <para style="terp_tblheader_Details">Code</para>
      <para style="terp_tblheader_Details">Account Name</para>
      <para style="terp_tblheader_Details_Right">Debit</para>
      <para style="terp_tblheader_Details_Right">Credit</para>
      <para style="terp_tblheader_Details_Right">Balance</para>
      <para style="terp_tblheader_Details_Right">Quantity</para>
David Warner
On 10/23/13, 10:21 AM

Just Add These Lines To Your RML File....... <font color="blue">Your String</font>

David Warner
On 10/23/13, 10:19 AM

Just Add These Lines To Your RML File.......

"Your String"

On 10/24/13, 3:18 AM

Thank you very much regarding this info. I am highly obliged that you have replied the answer of my question.

This is the correct answer and a simple one

on 10/24/13, 4:06 AM

This is the correct answer and a simple one

on 10/24/13, 4:07 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.


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)


Asked: 10/23/13, 8:45 AM
Seen: 3283 times
Last updated: 3/16/15, 8:10 AM