From 776a57ef0cda65ce03f60d9f5bf3d466225dd4b2 Mon Sep 17 00:00:00 2001 From: Gery Debongnie Date: Fri, 15 Nov 2013 12:26:59 +0100 Subject: [PATCH] [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 --- addons/web_graph/static/src/js/graph.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index 93e8d72cfe8..5a4ff51f2d4 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -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: [],