summaryrefslogtreecommitdiff
path: root/addons/web_graph/static/src
diff options
context:
space:
mode:
authorGery Debongnie <ged@openerp.com>2013-11-15 12:26:59 +0100
committerGery Debongnie <ged@openerp.com>2013-11-15 12:26:59 +0100
commit776a57ef0cda65ce03f60d9f5bf3d466225dd4b2 (patch)
tree1c13bf44989fc8defe8cba2ecce42a15293ed9b6 /addons/web_graph/static/src
parent75caaeb1a39cea51b05e41c3f5db1fe904f64f43 (diff)
[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
Diffstat (limited to 'addons/web_graph/static/src')
-rw-r--r--addons/web_graph/static/src/js/graph.js2
1 files changed, 2 insertions, 0 deletions
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: [],