Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
8243 มุมมอง

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

อวตาร
ละทิ้ง

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

ผู้เขียน คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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. 

อวตาร
ละทิ้ง