跳至内容
菜单
此问题已终结
2 回复
2897 查看

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

形象
丢弃
相关帖文 回复 查看 活动
3
5月 22
7069
0
3月 25
445
4
4月 24
172804
0
12月 23
1449
3
10月 23
7306