changeset b03358feeea9 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=b03358feeea9
description:
Parse imported value only if non empty
Empty value can not be parsed by locale. So they should stay empty.
issue8357
review285231002
diffstat:
tryton/gui/window/win_import.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r fa60ed55283f -r b03358feeea9 tryton/gui/window/win_import.py
--- a/tryton/gui/window/win_import.py Thu May 23 10:10:47 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)