コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
6774 ビュー

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

アバター
破棄
最善の回答

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.

アバター
破棄
関連投稿 返信 ビュー 活動
3
1月 24
13494
0
4月 22
65
1
5月 24
19914
1
7月 23
2243
1
12月 20
5914