2012-02-03 118 views
-2

請看截圖,並告知如何去除紅色 文本(「對象:: RES用戶現場:: NEW_PASSWORD」)在幫助黃色方框將鼠標懸停在「?」上時刪除工具提示符號

+2

500 INTERNAL_SERVER_ERROR 無法處理請求。 – balki 2012-02-03 12:31:41

+3

歡迎來到Stack Overflow。請不要只是在這裏轉儲錯誤。描述你的問題,你迄今爲止做了什麼來解決它,以及你的努力的結果。另請閱讀http://stackoverflow.com/questions/how-to-ask – 2012-02-03 12:34:46

+1

我沒有看到任何錯誤。顯示紅色文本是OpenERP的默認行爲。 @ Alchemist777,這是版本6,對不對? – 2012-02-03 18:51:35

回答

3

注:我假設你正在運行OpenERP v6。

找到文件openerp.ui.tips.js,它應該位於您的Web Client文件夾內。如果你是在Linux下,你可以通過在終端鍵入以下命令找到它:

sudo find/-type f -name 'openerp.ui.tips.js' 

接下來,打開您選擇的編輯器中的文件,找到這行:

... 

this.toolTitle = SPAN({'class': 'tipTitle'}); 
this.toolText = P({'class': 'tipText'}); 
this.toolModel = SPAN({'class': 'tipExtra'}); 
this.toolField = SPAN({'class': 'tipExtra'}); 
this. modelTitle = SPAN({'style': 'font-weight:bold;'}, _('Object')+' :: ') 
this.fieldTitle = SPAN({'style': 'font-weight:bold;'}, _('Field')+' :: ') 

... 

只是評論者在工具提示中不需要的行,並將其替換爲空字符串。在你的情況下,你必須這樣做:

... 

this.toolTitle = SPAN({'class': 'tipTitle'}); 
this.toolText = P({'class': 'tipText'}); 
this.toolModel = '';//SPAN({'class': 'tipExtra'}); 
this.toolField = '';//SPAN({'class': 'tipExtra'}); 
this. modelTitle = '';//SPAN({'style': 'font-weight:bold;'}, _('Object')+' :: ') 
this.fieldTitle = '';//SPAN({'style': 'font-weight:bold;'}, _('Field')+' :: ') 

... 

重新啓動Web客戶端。問題解決了。

PS: OpenERP中的紅色文本工具提示非常有用,尤其是當您根據自己的需要對其進行自定義時。在決定隱藏它們之前請三思。

+2

非常感謝你!!!這有幫助 – Alchemist777 2012-02-06 12:56:32

相關問題