Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
13474 มุมมอง

I want to display only current status on the header instead of all the statuses:

e.g. 
I have more than 12 statuses for my object and the statusbar gets messed up if I display all statuses. I don't want to use statusbar_visible as it displays specific statuses only and then when the record is on different status than what it has on statusbar_visible, it expands the statusbar options again by adding new status which is confusing.

Please help me.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thanks for your help, very much. It worked when I put statusbar_visible=" " with a space between quotes. 

I appreciate your suggestion! 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด


Make the statusbar_visible empty, as follows

<field name="state" widget="statusbar" statusbar_visible=""/>  

and it will shows only the current status.

My advice is to put the first and last states, as follows

<field name="state" widget="statusbar" statusbar_visible="first_state,last_state"/> 

so that the current state will be shown between them, this is better.


I hope this would be helpful

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
widget="statusbar" doesn't work แก้ไขแล้ว
4
มี.ค. 20
154
2
พ.ค. 17
3818
1
ก.ค. 24
2314
0
เม.ย. 24
1883
4
พ.ย. 23
6013