[FIX] Fixed on_mode_switch.

bzr revid: vta@openerp.com-20121010093700-nz326tlux3v5olqj
This commit is contained in:
vta vta@openerp.com
2012-10-10 11:37:00 +02:00
parent f7d5b5ff0a
commit 83c00b75ff
@@ -108,7 +108,7 @@ instance.web.UserMenu.include({
});
instance.web.ViewManagerAction.include({
on_mode_switch: function (view_type, no_store) {
switch_mode: function (view_type, no_store) {
var self = this;
this._super.apply(this, arguments).then(function() {
self.shortcut_check(self.views[view_type]);