This question has been flagged
1 Reply
12234 Views

I have a need to be able to highlight a line(record) on in a ListView based on a condition within that record. For example if I had a sales order which had a note on ot (notes field does not = null) I would want that line item to be highlighted in some way on the list view. (Change the text color ) The current procurement exception list view is an example of what I'm talking about. How can I apply that to the sales order / delivery order module, based on the example given above regarding the notes field

Avatar
Discard
Author

Thank you very much !!

Best Answer

Try something like this

<tree string="My Tree " colors="blue:state == 'draft';red:state == 'verified';black:state == 'approved'">
            <field name="state"/>
</tree>

Avatar
Discard