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

Hi,

I am working with Odoo Web Enterprise 17.0+e.

In Fleet module list view I have Sticker Date field, Date Time with Remaining Days widget which is showing countdown as shown in the image below.

What I want to do is change the color to RED if the countdown is below 30 days, currently all shown in black.


Is this possible to achieve?

Thanks in advance!

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

Hello,

You can use a Decoration-danger  in the respective treeview.


Check and clarify your doubts.

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

Hello Zulsani, 

Yes, it is possible to achieve this by using Odoo’s list view decoration attributes along with extending the XML logic for the tree view.

If you don’t already have a field that calculates the remaining days, you should add one.

Let me know if it helps :)

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 25
83
3
ก.ค. 25
1889
3
มิ.ย. 25
891
1
มิ.ย. 25
2083
2
พ.ค. 25
1878