diff options
| author | Xavier Morel <xmo@odoo.com> | 2018-08-07 14:02:39 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2018-08-07 14:02:39 +0200 |
| commit | 5f92f853e2c565ba299c452b97e0376d0c2705ef (patch) | |
| tree | 7cab168b4007b95068a20fa3b61ecce532b11c6c /addons/base_import/tests/test_csv_magic.py | |
| parent | 5aba5ac99e6663f0b8d329f7607e44068d1174e4 (diff) | |
[FIX] base_import: trying to import an empty file
Various bits would lead to odd tracebacks or a complete lack of
actionable feedback.
Discover that a binary field set to b'' will return None when read back,
handle that, then handle reading an empty CSV file, then handle the
resulting iterator having no lines whatsoever when trying to match
headers.
At least for CSVs, we're now properly telling users that their file
seems to have no content when they literally upload an empty file.
Diffstat (limited to 'addons/base_import/tests/test_csv_magic.py')
0 files changed, 0 insertions, 0 deletions
