Odoo Help

Welcome!

This community 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.

0

highlight values in list/tree view

By
Peter Nietz
on 3/11/14, 12:40 PM 1,417 views

hi guys,

I want to highlight some values in a listview. For example: if a field contains "whatever" the background color of that specific field in the table should be green.

Is that possible or do I have to implement a new type of listview?

thx Peter

0
Peter Nietz
On 3/21/14, 8:19 AM

So I found a way to highlight a whole line by adding:

<tree colors="red:my_key='my_value'">

to my xml view file.

like mentioned here:

http://www.odoo.com/forum/Help-1/question/Modify-colors-in-tree-view-v7-using-view-inheritance-17048

But if only one field not the whole line is needed to colorize the qweb template must be modified.

Take a look here:

http://www.odoo.com/forum/Help-1/question/inheritextend-ListViewrow-from-basexml-47136

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 3/11/14, 12:40 PM
Seen: 1417 times
Last updated: 3/16/15, 8:10 AM