[FIX] web: clicking on view buttons now refresh view
clicking on a view button should load the view, even if it is the active view.
This commit is contained in:
@@ -605,9 +605,7 @@ instance.web.ViewManager = instance.web.Widget.extend({
|
||||
this.$header_col = this.$header.find('.oe-header-title');
|
||||
this.$search_col = this.$header.find('.oe-view-manager-search-view');
|
||||
this.$switch_buttons.click(function (event) {
|
||||
if (!$(event.target).hasClass('active')) {
|
||||
self.switch_mode($(this).data('view-type'));
|
||||
}
|
||||
self.switch_mode($(this).data('view-type'));
|
||||
});
|
||||
var views_ids = {};
|
||||
_.each(this.views, function (view) {
|
||||
|
||||
Reference in New Issue
Block a user