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

At the login, you can choose which database to go in to. You could have two copies of a database. One for testing, one for production. Once logged in, how can you tell which database you're in? Is it displayed somewhere in the interface?

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

There are two ways:

1.You will find your database name beside your user name after activate the debug mode

2.Go to web/addons/web/static/src/js/chrome.js commet this line

  //if(instance.session.debug)
    topbar_name = _.str.sprintf("%s (%s)", topbar_name, instance.session.db);

You will keep the database name without the debug mode.

Ảnh đại diện
Huỷ bỏ

any way to active it without the debug mode? like modifiying a line of code somewhere in web module?

@Felipe yes. you can modify the js script.

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

What I have done to get around this problem is to create two bookmarks (or favorites if you're stuck with IE), each one with the database embedded in the URL:

http: //my.openerp.server/?db=Production#

and

http: //my.openerp.server/?db=Testing#

That way a quick glance at the address bar tells me which database I am in.

(My apologies for the broken urls -- apparently I don't have enough karma to post links. sigh)

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 7 24
33918
1
thg 3 15
7535
6
thg 7 24
82868
1
thg 7 24
22973
0
thg 9 18
2732