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

Where is the code that redirects to a page (page after successful login) of a user after login in OpenERP 7.

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

you can use window.location = "url" or instance.web.redirect() in chrome.js:754

instance.web.redirect = function(url, wait) { if (instance.client && instance.client.crashmanager) { instance.client.crashmanager.active = false; }

var wait_server = function() {
    instance.session.rpc("/web/webclient/version_info", {}).done(function() {
        window.location = url;
    }).fail(function() {
        setTimeout(wait_server, 250);
    });
};

if (wait) {
    setTimeout(wait_server, 1000);
} else {
    window.location = url;
}

};

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

I have created a form (like "Login" in base.xml) and I want to redirect to that page after Login, which asks for a One Time Password sent to mobile. How can I redirect to this page after login ?

Gopakumar, did you find your solution to redirect to your page?

Bài viết liên quan Trả lời Lượt xem Hoạt động
45
thg 4 23
85647
8
thg 12 22
20167
1
thg 5 25
39975
2
thg 7 20
37660
2
thg 10 17
17489