summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/session_instance.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2016-03-25 13:08:26 +0100
committerXavier Morel <xmo@odoo.com>2016-03-25 13:13:23 +0100
commit4a31f85c5ab49b7965f089edba296114039ae645 (patch)
tree673ea327af5d21a1072ea266b06e7807d874ef18 /addons/web/static/src/js/framework/session_instance.js
parent3b26d1e2fd8f0aba4094491db759b8adfcf89078 (diff)
[FIX] base_import: CSV import error from windows
Missing bit from #10374: because the _read_xls function is a generator it is *entirely* lazy and Python doesn't execute *any* code when it's initially called, which means the file is actually (tentatively) parsed when the first line is requested which happens outside of _read_file (and thus of the fallback mechanism implemented by #10374). Fix by splitting _read_xls between the opening of the workbook (eager) and the actual iteration (which remains lazy).
Diffstat (limited to 'addons/web/static/src/js/framework/session_instance.js')
0 files changed, 0 insertions, 0 deletions