Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

remove openerp title from messages [Closed]

By
priyankahdp
on 4/17/13, 4:15 AM 3,176 views

The Question has been closed

by
priyankahdp
on 04/18/2013 07:30:45

How to remove openerp title from popup error messages / dialog boxes ? i searched everywhere but unable to find exact phase which is need to change. please advice me on this

enter image description here

1

priyankahdp

--priyankahdp--
1089
| 5 5 6
Colombo, Sri Lanka
--priyankahdp--
Java Developer ORACLE Python J2EE Spring Hibernate Struts & Jquery............. :-)
priyankahdp
On 4/17/13, 4:35 AM

change chrome.js

line 273 and 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),
3

Acespritech

--Acespritech--
839
| 3 2 6
India
--Acespritech--

Having 8+ years of OpenERP Experience. We are Specialized in OpenERP/CRM Solutions, software development, Web development, E commerce solutions & other open source solutions.


Skype : acespritech

Email : info@acespritech.com

Acespritech
On 4/17/13, 4:36 AM

Hello,

You can find this solution in Javascript.

Here is the code in file /web/static/src/js/chrome.js

show_warning: function(error) { if (!this.active) { return; } instance.web.dialog($('

' + QWeb.render('CrashManager.warning', {error: error}) + '
'), { title: "OpenERP " + _.str.capitalize(error.type), buttons: [ {text: _t("Ok"), click: function() { $(this).dialog("close"); }} ] }); },


Thanks, Navrang Oza.

thanks Acespritech I done that :-)

priyankahdp
on 4/17/13, 5:45 AM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 4/17/13, 4:15 AM
Seen: 3176 times
Last updated: 3/16/15, 8:10 AM