This question has been flagged
7 Replies
20872 Views

There is no where I can find the reference to color index for tags. 1 meaning what? 2 meaning what? etc

Avatar
Discard
Best Answer

Through the "trial and error" method I got this

Color index Tags odoo 10

0 grey

1 green

2 yellow

3 orange

4 red

5 purple

6 blue

7 cyan

8 light green

9 magenta

Avatar
Discard
Best Answer

For Odoo 12 they're in this  file  web/static/src/scss/secondary_variables.scss in the line 9

// UI custom colors for tags, kanban records' colors, ...)
// Note: the first value is the old BS3 gray-light value
$o-colors: lighten(#000, 46.7%), #F06050, #F4A460, #F7CD1F, #6CC1ED, #814968,
#EB7E7F, #2C8397, #475577, #D6145F, #30C381, #9365B8;

Avatar
Discard
Best Answer

Try these steps to see the color choices using the UI (version 9, maybe older as well):

1. create the tag text but just leave the default color

2. after the tag is created, click on the tag body.  it will show the colors and then you can pick the one you want.

Avatar
Discard
Best Answer
For data tags we have totaly 11 colar:
Odoo16 /odoo/addons/web/static/src/legacy/xml/base.xml line 1121
# data-color="1" title="Red"
# data-color="2" title="Orange"
# data-color="3" title="Yellow"
# data-color="4" title="Light blue"
# data-color="5" title="Dark purple"
# data-color="6" title="Salmon pink"
# data-color="7" title="Medium blue"
# data-color="8" title="Dark blue"
# data-color="9" title="Fushia"
# data-color="10" title="Green"
# data-color="11" title="Purple"


Avatar
Discard
Best Answer

Here are the relations in Odoo 8.0 from color index to hex value of the color:

0 background-color: #FFFFFF

1 background-color: #CCCCCC

2 background-color: #FFC7C7

3 background-color: #FFF1C7

4 background-color: #E3FFC7

5 background-color: #C7FFD5

6 background-color: #C7FFFF

7 background-color: #C7D5FF

8 background-color: #E3C7FF

9 background-color: #FFC7F1

You can convert the HEX to "real" color via tools like below:

http://www.w3schools.com/colors/colors_picker.asp

Avatar
Discard

Where in the code did you find them?

yes where? there is no documentation about the color index of crm.lead.tag ....