[FIX] fixes a bug where the view build a table without clearing the existing rows (addon web_graph)

bzr revid: ged@openerp.com-20131115112659-mzb4smcr85dq60ww
This commit is contained in:
Gery Debongnie 2013-11-15 12:26:59 +01:00
parent 75caaeb1a3
commit 776a57ef0c
1 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,7 @@ var BasicDataView = instance.web.Widget.extend({
// measure: quantity to display. either a field from the model, or
// null, in which case we use the "count" measure
init: function (model, options) {
console.log("initializing", model, options);
var self = this;
this.model = model;
this.fields = options.fields;
@ -422,6 +423,7 @@ var PivotTable = BasicDataView.extend({
build_table: function (data) {
var self = this;
this.rows = [];
this.cols = [{
path: [],