تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5841 أدوات العرض

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 

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
الكاتب

thanks Patel, i will try this

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
فبراير 21
2475
1
سبتمبر 20
5450
0
يوليو 19
216
2
ديسمبر 18
4169
5
نوفمبر 18
7782