跳至内容
菜单
此问题已终结
1 回复
10818 查看

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

形象
丢弃
最佳答案

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;
}

};

形象
丢弃
编写者

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?

相关帖文 回复 查看 活动
45
4月 23
85497
8
12月 22
20109
1
5月 25
39867
2
7月 20
37553
2
10月 17
17407