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

According to the Documentation of Odoo, it had a build-it widget called "badges" which displays all selectable values simultaneously inside rectangular shapes, organized horizontally. However, the usage of the badges was not stated clearly. After multiple trials of the usage, the badges still do not function as expected, it just looks like a normal drop-down selection. 

อวตาร
ละทิ้ง
ผู้เขียน

thanks a lot.

คำตอบที่ดีที่สุด

Hi,

You can define a selection field and along with the field name you can add widget="selection_badge" , once the widget is added and if the field is editable (ie, not readonly), the selection values will display horizontally as rectangle shapes.



Badge WIdget:






Thanks

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ส.ค. 23
1318
widget many2many_list not working v13 แก้ไขแล้ว
2
ธ.ค. 22
1291
3
เม.ย. 17
10119
publicWidget.Widget.extend example แก้ไขแล้ว
1
ต.ค. 22
10919
0
ส.ค. 21
1666