跳至內容
選單
此問題已被標幟
2 回覆
3443 瀏覽次數

color for statusbar

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
5月 25
7797
0
3月 25
1385
4
4月 24
174300
0
12月 23
2184
3
10月 23
8807