Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3595 Lượt xem

Is there a way to display an information panel while hovering over an item in a selection list? I'm using Odoo 15.0. I want it so when a user has their mouse hovering over an item in the selection list an information box displays information about the item they are hovering over.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I don't know if you can show an individual tooltip for every item, but you can add a generic one that explain every one in the selection field with the help attribute.

state = fields.Selection([...], required=True, help="Blah blah blah")

https://www.odoo.com/documentation/15.0/developer/reference/backend/orm.html#odoo.fields.Field



Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Nolan Johnston,

I don't think there is a direct option to add tooltip for selection items. I have found a similar question, that might help with your requirement. 

https://www.odoo.com/forum/help-1/how-to-create-a-function-to-set-dynamic-tooltip-for-field-60320

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 23
1587
4
thg 7 23
6946
1
thg 6 25
1702
3
thg 7 25
3330
1
thg 5 25
1470