Hi Guys,
i'm wondering is it possible to change text style (color, bold etc) for text values in SO, for example client name or phone?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi Guys,
i'm wondering is it possible to change text style (color, bold etc) for text values in SO, for example client name or phone?
Dear Rostyslav Sulym,
Try this code to check your selection field value and apply change text style based on color and, bold.
<t t-if-"Good">
<t t-set="style" t-value="'color:blue'" />
</t>
<t t-if-"Bad">
<t t-set="style" t-value="'color:red'" />
</t>
<span t-att-style="style" >Test</span>
Thanks,
hello, thanks for reply, but this is for Qweb, it's not suitable in my case
I’m taking Odoo about field selection field. actually I want to apply style based on selection field value(Good, Bad). Let say selection field value is “Good” then show In Green bold if value is “Bad” then show red bold. We can’t achieve this through apply inline CSS as per your suggestion.
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
odoo 10 how to colorize order lines
Đã xử lý
|
|
1
thg 6 20
|
3855 | |
|
2
thg 7 25
|
4488 | ||
|
2
thg 12 24
|
7668 | ||
|
2
thg 12 24
|
2367 | ||
How to ORDER BY? [Odoo 10]
Đã xử lý
|
|
2
thg 11 24
|
28430 |
if you are talking about odoo fields, than just inherit that field and apply inline css as per ur need