Color change in odoo 9 tree structure

Is it possible to change the color in the tree view, for example if the total_time field (floating point time widget) <= 00:00 puts the color red.

I will try below example but not working!

colors="red:total_time<='00:00'"

      

+3


source to share


1 answer


You can do this using the following method.

colors="red:total_time&lt;='00:00'"

      

You should avoid special characters in XML.



Example:

less than (<) is escaped to &lt;

greater than (>) is escaped to &gt;

      

This might help you.

+3


source







All Articles