Hello. Right now I am currently using Openerp v7 and I am looking for a way to change the styling of grouped rows in a tree view. For example, I have a tree view which is set with a default group by filter.

I am looking to change the font color of the grouped row if it contains less than 5 records. So if one of the grouped rows only contains 3 records inside, then the font color should be red. I don't want to change the font color for the records inside the grouped row.

Is there a way to do this in an xml view? Or do I need to do this with javascript and css?