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 can change an entire row's color base on the comparison vaue of a boolean. I've done that.
<tree string="Contacts" colors="red:dnc==True">
<field name="function" invisible="1"/>
<field name="user_id" invisible="1"/>
<field name="is_company" invisible="1"/>
<field name="country_id" invisible="1"/>
<field name="parent_id" invisible="1"/>
BUT what I really want is to change the color of just one specific field (phone) based on that boolean's value (dnc). Any ideas?
No I dont think you can do it, but you can change the color for entire records based on criteria...
However, without using any criteria if you wish to set colors for few fields, then yes you can do it...
In form view, I have acheived setting color for few selected fields, by creating my own widget in js, and referenced the same against those fields using "option",
So you can also try the same, see if it works for you too in Tree view..
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: 2/17/15, 4:54 PM|
|Seen: 768 times|
|Last updated: 3/16/15, 8:10 AM|