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

Where can I find a list of colors and codes? I only new that 2 is the color code for red when I change the color of a task with a server action.

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

I don't have the fish, but I can show you how to get it:

  • On the Project Issue form, edit it's XML to add <field name="color"/>
  • Now try changing Issue's color's on the Issue Kanban view
  • Check on the form that value showed in the Color field
อวตาร
ละทิ้ง
ผู้เขียน

Thanks. For all others: The color code for white task is 0

คำตอบที่ดีที่สุด
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"


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

- None: 0
- Red: 1
- Orange: 2
- Yellow: 3
- Blue: 4
- Dark Purple: 5
- ... colors in the are placed in order

It's even easier to check if you add the field `` in the kanban view.




อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
color code in odoo tree view แก้ไขแล้ว
3
ส.ค. 22
7693
0
ก.ย. 23
2124
6
ม.ค. 19
9735
3
เม.ย. 17
10850
0
ส.ค. 16
4360