Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
3388 Prikazi

color for statusbar

Avatar
Opusti
Best Answer

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

Avatar
Opusti
Best Answer

Thank you so much Kiran K

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
maj 25
7732
0
mar. 25
1330
4
apr. 24
174188
0
dec. 23
2114
3
okt. 23
8685