Skip to Content
Menu
This question has been flagged
3 Replies
7788 Views

How I can change the text color in this fields?
<field name="debit" sum="Total Debit"/>
<field name="credit" sum="Total Credit"/>

Avatar
Discard

if you need to give color for your text, then use style="color:Red;"

Author Best Answer

Not runs in my server (ODOO 10) with: <field name="debit" sum="Total Debit" style="color:blue ! important;" />

Avatar
Discard
Best Answer

Hi, 

You can simply add attribute style to specify the color you want to have for each field. Like this :

<field name="debit" sum="Total Debit" style="color:blue ! important;" />

Or idealy follow this link where i have added the best practice when working with css. : https://www.odoo.com/fr_FR/forum/aide-1/question/how-to-increase-the-height-of-the-field-html-145202#answer-145211

Regards. 

Upvote if this helps. 

Avatar
Discard