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'd like to set a style to a field depending on the value of other field.
I have a field name (string) and a field is_company (boolean). If is_company is True, I want to set the width of the field name to 100%. If not, the width must be 48%.
<field name="name" placeholder='Name' />
<field name="name" placeholder='Name' class='oe_inline' style='margin-right: 2%%; max-width: 48%% !important;' />
The only conditional kind of style I found by the moment is the color:
< ... colors="green: is_company == True;">
But now, this is not what I'm looking for.
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: 11/12/14, 4:58 AM|
|Seen: 739 times|
|Last updated: 3/16/15, 8:10 AM|