diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-01-26 19:13:41 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-01-26 19:13:41 +0100 |
| commit | 2ce9311cfe48f1664dd36a33d3d64b5e47b3ab1a (patch) | |
| tree | 8eb3dab5ced49ac5fe0f537210a0e878093d9aaf /addons/web/static/src | |
| parent | 7d80cb87900c59c3f402e21e288282e0f785d94b (diff) | |
| parent | a576f2baf3623587e5c1aef98d0fc199e91b4acc (diff) | |
[MERGE] forward port of branch saas-6 up to a576f2b
Diffstat (limited to 'addons/web/static/src')
| -rw-r--r-- | addons/web/static/src/js/views/pivot_view.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/pivot_view.js b/addons/web/static/src/js/views/pivot_view.js index 7c74103f211..6d0a75da569 100644 --- a/addons/web/static/src/js/views/pivot_view.js +++ b/addons/web/static/src/js/views/pivot_view.js @@ -799,6 +799,10 @@ var PivotView = View.extend({ nbr_measures: nbr_measures, title: this.title, }; + if(table.measure_row.length + 1 > 256) { + c.show_message(_t("For Excel compatibility, data cannot be exported if there is more than 256 columns.\n\nTip: try to flip axis, filter further or reduce the number of measures.")); + return; + } session.get_file({ url: '/web/pivot/export_xls', data: {data: JSON.stringify(table)}, |
