Odoo Help


Highlight (change style or color) of record in list view, based on condition(s)

John Pia Jr
on 6/12/14, 7:50 PM 2,713 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

Thank you very much !!

John Pia Jr
on 6/16/14, 9:15 AM
Sajad KK
On 6/12/14, 11:47 PM

Try something like this

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 6/12/14, 7:50 PM
Seen: 2713 times
Last updated: 3/16/15, 8:10 AM