summaryrefslogtreecommitdiff
path: root/addons/web/controllers
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-07-13 14:32:05 +0200
committerChristophe Simonis <chs@odoo.com>2018-07-13 14:32:05 +0200
commitf3929aa0f75c2d3ac039bfc5bd41194516ae5571 (patch)
tree6ef909a475e4e99d1e9eb9c3d2e6c891fc7ad892 /addons/web/controllers
parente8fc62ec74f94fd1bfea105a15082dfede4dc987 (diff)
parent87dadc5bc83714cb0e748824f57e4cd35d02bbbf (diff)
[MERGE] forward port branch saas-11.2 up to 87dadc5bc83
Diffstat (limited to 'addons/web/controllers')
-rw-r--r--addons/web/controllers/main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index f4cddcc1ee2..41d5d229772 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -1496,6 +1496,8 @@ class ExcelExport(ExportFormat, http.Controller):
if isinstance(cell_value, pycompat.string_types):
cell_value = re.sub("\r", " ", pycompat.to_text(cell_value))
+ # Excel supports a maximum of 32767 characters in each cell:
+ cell_value = cell_value[:32767]
elif isinstance(cell_value, datetime.datetime):
cell_style = datetime_style
elif isinstance(cell_value, datetime.date):