[IMP] updates the pivot table domain when search view is activated

bzr revid: ged@openerp.com-20131126155706-nqc6hgjbyty8jju2
This commit is contained in:
Gery Debongnie
2013-11-26 16:57:06 +01:00
parent 4eef572065
commit 857b48749b
2 changed files with 2 additions and 4 deletions
+1
View File
@@ -161,6 +161,7 @@ instance.web_graph.GraphView = instance.web.View.extend({
self.pivot_table = new PivotTable(self.data);
self.pivot_table.start().then(self.proxy('draw_table'));
} else {
this.pivot_table.domain = domain;
this.pivot_table.update_values().done(function () {
self.draw_table();
});
+1 -4
View File
@@ -330,10 +330,7 @@ var PivotTable = openerp.web.Class.extend({
row_data = _.last(_.initial(args)),
cell_data = args;
var result = self.format_data(total, col_data, row_data, cell_data);
console.log("result final",result);
return result;
return self.format_data(total, col_data, row_data, cell_data);
});
},