Odoo Help

2

0
1 Answer
1
Avatar

Andreas Tolstov Germany

--Andreas Tolstov--

1194
| 6 6 10
Hamburg, Germany
--Andreas Tolstov--

hi

Andreas Tolstov Germany
11/18/13, 6:54 AM

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

};

2 Comments
Gopakumar N G India
11/20/13, 4:54 AM

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 ?

BISSTECH SRL Romania
1/19/17, 10:15 AM

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

Ask a Question
Writer
Tags
Keep Informed
1 follower(s)
About This Community

This platform 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.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now