color for statusbar
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
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 |