Odoo Help

Welcome!

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

1

how to auto refresh top left company logo in code ?

By
Prakash
on 4/15/14, 6:47 AM 2,067 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?..

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

User198605
on 11/27/14, 2:29 AM
1

Prakash

--Prakash--
3173
| 5 4 7
Bikaner, India
--Prakash--

OpenERP Devloper at SunARC Technology

Prakash
On 12/4/14, 3:36 AM

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*/
        },

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 4/15/14, 6:47 AM
Seen: 2067 times
Last updated: 3/16/15, 8:10 AM