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?..
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
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*/
},
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
2
jul. 25
|
1486 | ||
|
1
mai. 25
|
955 | ||
|
2
jul. 25
|
1123 | ||
|
2
mai. 25
|
1581 | ||
|
1
jul. 24
|
3277 |
I am also facing same issue. But, this works fine for "Admin" user. Did you find solution?