跳至內容
選單
此問題已被標幟
2 回覆
3555 瀏覽次數

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.

頭像
捨棄
最佳答案

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



頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
9月 23
1529
4
7月 23
6886
1
6月 25
1556
3
7月 25
3225
1
5月 25
1374