diff --git a/addons/web_graph/static/src/js/pivot_table.js b/addons/web_graph/static/src/js/pivot_table.js index d53c972a742..6fc9cf2b12b 100644 --- a/addons/web_graph/static/src/js/pivot_table.js +++ b/addons/web_graph/static/src/js/pivot_table.js @@ -253,7 +253,7 @@ openerp.web_graph.PivotTable = openerp.web.Class.extend({ var self = this; return this.perform_requests().then (function () { var data = Array.prototype.slice.call(arguments); - self.no_data = !data[0][0].attributes.length; + self.no_data = !data[0].length; if (self.no_data) { return; }