diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-01-26 18:20:11 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-01-26 18:20:11 +0100 |
| commit | a576f2baf3623587e5c1aef98d0fc199e91b4acc (patch) | |
| tree | 37d4d53fe6e3951a1fd85a6c62ba9c2dff89a131 /addons/web/static/src/js | |
| parent | 50b0b075a9d7dc2320bd1428f98eba9bdb27dcb0 (diff) | |
| parent | 43a4ffe6b6abecd0369da7dba6a24bec30d6228c (diff) | |
[MERGE] forward port of branch 8.0 up to 43a4ffe
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/view_pivot.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web/static/src/js/view_pivot.js b/addons/web/static/src/js/view_pivot.js index 6e09c8ed098..22f655f160d 100644 --- a/addons/web/static/src/js/view_pivot.js +++ b/addons/web/static/src/js/view_pivot.js @@ -785,6 +785,10 @@ instance.web.PivotView = instance.web.View.extend({ title: this.title, }; var c = openerp.webclient.crashmanager; + 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; + } this.session.get_file({ url: '/web/pivot/export_xls', data: {data: JSON.stringify(table)}, |
