color for statusbar
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухгалтерия
- Склад
- PoS
- Project
- MRP
Этот вопрос был отмечен
Hi Jain ,
Try
<form string="allocation_form">
<style>
.o_form_view .o_form_statusbar > .o_statusbar_status > .o_arrow_button.btn-primary.disabled[data-value="draft"] {
background: blue;
}
.o_form_view .o_form_statusbar > .o_statusbar_status >
.o_arrow_button.btn-primary.disabled[data-value="draft"]::after {
border-left-color: blue;
}
.o_form_view .o_form_statusbar > .o_statusbar_status > .o_arrow_button.btn-primary.disabled[data-value = "cancel"] {
background: green;
}
.o_form_view .o_form_statusbar > .o_statusbar_status > .o_arrow_button.btn-primary.disabled[data-value =
"cancel"]::after {
border-left-color: green;
}
</style>
<header>
<field name="state" widget="statusbar" statusbar_visible="draft,cancel"/>
</header>
Hope it Helps
Kiran K
Thank you so much Kiran K
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
РегистрацияRelated Posts | Ответы | Просмотры | Активность | |
---|---|---|---|---|
|
3
мая 22
|
7079 | ||
|
0
мар. 25
|
455 | ||
|
4
апр. 24
|
172836 | ||
|
0
дек. 23
|
1461 | ||
|
3
окт. 23
|
7323 |