[FIX] do not show timezone if anonymous

bzr revid: vta@openerp.com-20121217090857-m2ye3pm0bjdm341d
This commit is contained in:
vta vta@openerp.com 2012-12-17 10:08:57 +01:00
parent d9333329a6
commit b897974d61
1 changed files with 2 additions and 2 deletions

View File

@ -811,7 +811,7 @@ instance.web.Menu = instance.web.Widget.extend({
});
}
});
},
start: function() {
this._super.apply(this, arguments);
@ -1200,7 +1200,7 @@ instance.web.WebClient = instance.web.Client.extend({
var browser_offset = (offset < 0) ? "-" : "+";
browser_offset += _.str.sprintf("%02d", Math.abs(offset / 60));
browser_offset += _.str.sprintf("%02d", Math.abs(offset % 60));
if (browser_offset !== user_offset) {
if (browser_offset !== user_offset && self.session.username !== 'anonymous') {
var $icon = $(QWeb.render('WebClient.timezone_systray'));
$icon.on('click', function() {
var notification = self.do_warn(_t("Timezone mismatch"), QWeb.render('WebClient.timezone_notification', {