0

如何从弹出错误消息/对话框中删除 openerp 标题?我到处搜索,但找不到需要更改的确切相位。

错误信息

请给我建议

4

1 回答 1

2

更改 chrome.js

第 273 和 288 行

title: "Softplanter " + _.str.capitalize(error.type),
            buttons: [
                {text: _t("Ok"), click: function() { $(this).dialog("close"); }}
            ]
        });
    },
    show_error: function(error) {
        if (!this.active) {
            return;
        }
        var buttons = {};
        buttons[_t("Ok")] = function() {
            $(this).dialog("close");
        };
        var dialog = new instance.web.Dialog(this, {
            title: "YourName " + _.str.capitalize(error.type),
于 2013-04-17T06:35:30.703 回答