跳至內容
選單
此問題已被標幟
2 回覆
978 瀏覽次數

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 :)

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
1月 25
83
3
7月 25
1873
3
6月 25
872
1
6月 25
2046
2
5月 25
1863