Skip to Content
मेन्यू
This question has been flagged
1 Reply
6540 Views

In OpenERP 7 multi-company setting user login based on company top left logo dynamic changes default functionality is working great. But after the Login need to refresh the page then only Logo changes will be display. How to auto refresh top left page in the code automatically after login the user?..

Avatar
Discard

I am also facing same issue. But, this works fine for "Admin" user. Did you find solution?

Author Best Answer

Yes, i find the solution After Login code reload method is called.

web\static\src\js\chrome.js

    do_login: function (db, login, password) {
        var self = this;
        self.hide_error();
        self.$(".oe_login_pane").fadeOut("slow");
        return this.session.session_authenticate(db, login, password).then(function() {
            self.remember_last_used_database(db);
            if (self.has_local_storage && self.remember_credentials) {
                localStorage.setItem(db + '|last_login', login);
            }
            self.trigger('login_successful');
            /*The below Reload code is added to reload the page so user login automatic Left top logo change.*/
            instance.web.Reload(1,1);
            /*END*/
        },

Avatar
Discard
Related Posts Replies Views Activity
2
जुल॰ 25
1364
1
मई 25
847
2
जुल॰ 25
941
2
मई 25
1466
1
जुल॰ 24
3143