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.

0

How to show a Pop up box ,when current user is Logged in Odoo ?

By
Odoo
on 8/6/15, 4:31 AM 505 views

Hi All,

I want to show a pop up box when a user is logged in the database first time ,required Information in the pop up box is user latest connection from res.users table.

How to acheive this task by javascript/jquerry Need a help...............?

bind_hashchange: function() {
var self = this;
$(window).bind('hashchange', this.on_hashchange);
var state = $.bbq.getState(true);
if (_.isEmpty(state) || state.action == "login") {
alert('################################## Login alert%%%%%%%%%%%%%%%%') //Now I got Pop up,but no data?
self.menu.is_bound.done(function() {
new instance.web.Model("res.users").call("read", [self.session.uid, ["action_id"]]).done(function(data) {
if(data.action_id) {
self.action_manager.do_action(data.action_id[0]);
self.menu.open_action(data.action_id[0]);
} else {
var first_menu_id = self.menu.$el.find("a:first").data("menu");
if(first_menu_id) {
self.menu.menu_click(first_menu_id);
}
}
});
});
} else {
$(window).trigger('hashchange');
}
},

I try to add some alert in chrome.js file --------



Hi Dep did you get any solution for this?? I am also trying to do this.

Logicious
on 1/13/16, 5:44 AM

Yes I got the solution you just changed the chrome.js file from web

On Jan 13, 2016 4:14 PM, "Logicious" <prasanth.logicious@gmail.com> wrote:

Hi Dep did you get any solution for this?? I am also trying to do this.

--
Logicious

Odoo
on 1/13/16, 8:13 AM

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: 8/6/15, 4:31 AM
Seen: 505 times
Last updated: 1/13/16, 8:13 AM