Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
6765 Tampilan

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

Avatar
Buang
Jawaban Terbai

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.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Jan 24
13474
0
Apr 22
65
1
Mei 24
19887
1
Jul 23
2238
1
Des 20
5910