[fix]fix code.

bzr revid: vme@tinyerp.com-20111207125200-qhcbvs557cjerg4x
This commit is contained in:
Vidhin Mehta (OpenERP) 2011-12-07 18:22:00 +05:30
parent 9ee2c1d66c
commit c4655794a1
1 changed files with 3 additions and 0 deletions

View File

@ -455,6 +455,9 @@ session.web.ViewManagerAction = session.web.ViewManager.extend(/** @lends oepner
},
on_mode_switch: function (view_type) {
var self = this;
if (!_.include(_.pluck(this.views_src,"view_type"),view_type))
return;
return $.when(
this._super(view_type),
this.shortcut_check(this.views[view_type])