diff --git a/addons/web/static/src/js/view_pivot.js b/addons/web/static/src/js/view_pivot.js index c76893a4938..1f12347fb42 100644 --- a/addons/web/static/src/js/view_pivot.js +++ b/addons/web/static/src/js/view_pivot.js @@ -71,7 +71,7 @@ instance.web.PivotView = instance.web.View.extend({ self.sidebar.appendTo(self.$sidebar); self.sidebar.add_items('other', [{ label: _t("Download xls"), - callback: self.dowload_table.bind(self) + callback: self.download_table.bind(self) }]); } }); @@ -199,7 +199,7 @@ instance.web.PivotView = instance.web.View.extend({ return this.toggle_measure(field); } if ($target.hasClass('oe-pivot-download')) { - return this.dowload_table(); + return this.download_table(); } }, on_open_header_click: function (event) { @@ -731,7 +731,7 @@ instance.web.PivotView = instance.web.View.extend({ this.load_data().then(this.display_table.bind(this)); } }, - dowload_table: function () { + download_table: function () { openerp.web.blockUI(); var nbr_measures = this.active_measures.length, headers = this.compute_headers(), @@ -754,7 +754,7 @@ instance.web.PivotView = instance.web.View.extend({ } } var table = { - headers: nbr_measures > 1 ? _.initial(headers) : headers, + headers: _.initial(headers), measure_row: measure_row, rows: rows, nbr_measures: nbr_measures,