Skip to Content
मेन्यू
This question has been flagged
2 Replies
3393 Views

color for statusbar

Avatar
Discard
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
Discard
Best Answer

Thank you so much Kiran K

Avatar
Discard
Related Posts Replies Views Activity
2
मई 25
7738
0
मार्च 25
1334
4
अप्रैल 24
174196
0
दिस॰ 23
2119
3
अक्तू॰ 23
8696