Odoo Help


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

Gopakumar N G
on 10/31/13, 2:57 AM 3,879 views

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

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


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 N G
on 11/20/13, 4:54 AM

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

on 1/19/17, 10:15 AM

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.


Odoo Training Center

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

Test it now

Question tools

1 follower(s)


Asked: 10/31/13, 2:57 AM
Seen: 3879 times
Last updated: 8/11/17, 2:01 AM