Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6135 Lượt xem

I want to highlight the rows by a color (Gareen) in tree/summary view for all the employees how's age is greater than 45 years.

Please guide me how I can write the custom CSS to highlight a row in the summary screen. 

Thanks very much 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello Hassan Iqbal,
You can use decoration-* attribute in list view to highlight row based on condition.
like:

<tree decoration-success="age &gt; 45">

See decoration-{$name} at https://www.odoo.com/documentation/12.0/reference/views.html#lists

Ảnh đại diện
Huỷ bỏ
Tác giả

thanks Patel, i will try this

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 21
2734
1
thg 9 20
5784
0
thg 7 19
216
2
thg 12 18
4470
5
thg 11 18
8107