color for statusbar
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
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
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
2
mai 25
|
7719 | ||
|
0
mars 25
|
1319 | ||
|
4
avr. 24
|
174167 | ||
|
0
déc. 23
|
2089 | ||
|
3
oct. 23
|
8655 |