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

How can I change the text of a tooltip? For example, see this screenshot of a tooltip for "Gross Weight". The text reads "The gross weight in Kg". I would like to change this to read "The gross weight in lbs". Is that possible

http://i.imgur.com/Dp0UoDr.png

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

You can achieve it using a specific module that inherit from the original one and redefine that field and change the help attribute like this:

class product_template(osv.Model):

_inherit = ['product.template']

_columns = {

                    'weight': fields.float('Gross Weight', digits_compute=dp.get_precision('Stock Weight'), help="The gross weight in lbs."),


hope it helps.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 1 24
13548
0
thg 4 22
65
1
thg 5 24
19974
1
thg 7 23
2278
1
thg 12 20
5933