Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
26549 Lượt xem

In all browser tabs there is a name ending with '- OpenErp'. How can i append something to this string?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Looking at the source code, you can find this function:

    set_title: function(title) {
            title = _.str.clean(title);
            var sep = _.isEmpty(title) ? '' : ' - ';
            document.title = title + sep + 'OpenERP';
    },

Review web/static/src/js/chrome.js

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you, this is what i wanted to know.

Hi Ray carnes Can you to me how to change the text that accur in the browser tab while reloading the tab

Câu trả lời hay nhất

@Umashankar Subramani    you can change the text in the   file  web/views/webclient_templates.xml

<head>
                    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
                    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
                    <title>Odoo</title>
                    <link rel="shortcut icon" href="/web/static/src/img/favicon.ico" type="image/x-icon"/>
                    <link rel="stylesheet" href="/web/static/src/css/full.css" />
                    <t t-raw="head or ''"/>
                </head>

 

Change the text Odoo with your custom text.. then it will not appear further.

Hope it helps you.

 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 25
1272
1
thg 5 25
789
2
thg 5 25
1382
1
thg 7 24
3013
0
thg 8 24
341