[IMP] updates the pivot table domain when search view is activated
bzr revid: ged@openerp.com-20131126155706-nqc6hgjbyty8jju2
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user