[FIX] fixes a small bug where the columns would expand all headers when the user clears the rows groupby in the search view (addon web_graph)

bzr revid: ged@openerp.com-20131206162301-fbq5mgqhg65yqi96
This commit is contained in:
Gery Debongnie 2013-12-06 17:23:01 +01:00
parent 5c04caf2ee
commit 476d0f4f38
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,9 @@ openerp.web_graph.PivotTable = openerp.web.Class.extend({
},
set_row_groupby: function (groupby) {
if ((!groupby.length) && (this.rows.main)) {
this.fold(this.rows.main);
}
if (!_.isEqual(groupby, this.rows.groupby)) {
this.rows.groupby = groupby;
this.invalidate_data();
@ -48,6 +51,9 @@ openerp.web_graph.PivotTable = openerp.web.Class.extend({
},
set_col_groupby: function (groupby) {
if ((!groupby.length) && (this.cols.main)) {
this.fold(this.cols.main);
}
if (!_.isEqual(groupby, this.cols.groupby)) {
this.cols.groupby = groupby;
this.invalidate_data();