changeset 9d67e98e1f40 in tryton:5.2
details: https://hg.tryton.org/tryton?cmd=changeset;node=9d67e98e1f40
description:
Parse imported value only if non empty
Empty value can not be parsed by locale. So they should stay empty.
issue8357
review285231002
(grafted from b03358feeea90d6e214cec1512702a392aa6364a)
diffstat:
tryton/gui/window/win_import.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 730576349c04 -r 9d67e98e1f40 tryton/gui/window/win_import.py
--- a/tryton/gui/window/win_import.py Mon Jun 10 18:30:03 2019 +0200
+++ b/tryton/gui/window/win_import.py Mon May 27 23:15:24 2019 +0200
@@ -197,7 +197,7 @@
continue
row = []
for field, val in zip(fields, line):
- if locale_format:
+ if locale_format and val:
type_ = self.fields_data[field]['type']
if type_ in ['integer', 'biginteger']:
val = locale.atoi(val)