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
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
2
พ.ค. 25
|
7743 | ||
|
0
มี.ค. 25
|
1342 | ||
|
4
เม.ย. 24
|
174210 | ||
|
0
ธ.ค. 23
|
2124 | ||
|
3
ต.ค. 23
|
8716 |