},
on_mode_switch: function (view_type, no_store) {
var self = this;
+ var switched = $.when(this._super(view_type, no_store)).then(function () {
+ self.$element.find('.oe-view-manager-logs:first')
+ .addClass('oe-folded').removeClass('oe-has-more')
+ .find('ul').empty();
+ });
return $.when(
- this._super(view_type, no_store),
+ switched,
this.shortcut_check(this.views[view_type])
).then(function() {
var controller = self.views[self.active_view].controller,