Python 将鼠标悬停在“上”时删除工具提示&引用;符号
请查看屏幕截图,并建议如何删除红色文本 帮助黄色框中的('object::res users Field::new_password')Python 将鼠标悬停在“上”时删除工具提示&引用;符号,python,openerp,Python,Openerp,请查看屏幕截图,并建议如何删除红色文本 帮助黄色框中的('object::res users Field::new_password') 注意:我假设您正在运行OpenERP v6 找到文件openerp.ui.tips.js,它应该在Web客户端文件夹中。如果您在Linux下,您可以通过在终端中键入以下命令来找到它: sudo find / -type f -name 'openerp.ui.tips.js' 接下来,在所选编辑器中打开该文件并找到以下行: ... this.toolTit
注意:我假设您正在运行OpenERP v6 找到文件
openerp.ui.tips.js
,它应该在Web客户端文件夹中。如果您在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中的红色文本工具提示非常有用,特别是当您根据自己的需要自定义它时。在决定隐藏它们之前请三思。500内部服务器错误无法处理请求。欢迎使用堆栈溢出。请不要只是在这里转储错误。描述你的问题,到目前为止你做了什么来解决它,以及你努力的结果。请同时阅读我没有看到任何错误。显示红色文本是OpenERP的默认行为@炼金术士777,这是第六版,对吗?非常感谢!!!那有帮助