Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I need to know hwot ochange the color of a line (record) in a tree view based on if there is any content within the notes field of the form..
I want the line text to change to red inf there are any notes in the notes field on a specific delivery order. How can I do this? something like
if notes != '' then ...
If you want to compare several values or make operations you can also do something like:
<tree colors="blue:state == 'draft';black:state in ('proforma','proforma2','open');gray:state == 'cancel';orange:date_due < current_date;" string="Invoice" default_order="date_invoice">
take note that in xml you can not use <, >, >=,<= because that simbols are part of the structure, so instead use <, >, <= and >=
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 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/24/14, 2:38 PM|
|Seen: 10953 times|
|Last updated: 12/9/16, 11:06 AM|