summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2018-02-27 16:06:05 +0100
committerNicolas Lempereur <nle@odoo.com>2018-02-28 11:17:21 +0100
commitf0c801778ab8f4c0a8e8a764683711237b0c677b (patch)
treedc856e3e13e18f64bfa0b5dc5f6c769d5bc61b60 /addons/web/static/src/js/views/basic/basic_controller.js
parent0dc32e6b8c679e1a4ab2f8bfbd9378f81e8451b0 (diff)
[FIX] base_import: allow whitespace as empty float
Empty cells containing only spaces may have unexpected results (not shown traceback and broken import) when being imported and they were intended for a float or monetary field. To avoid the error we could either, ignore left/right whitespace when parsing a float value (so same behavior as en emtpy cell) or prevent the error and get an friendly import report error: ' ' does not seem to be a number for field 'Name of Field' This change choose the first way, so a float ' ' (just whitespace) will be considered as '' (empty). opw-1816784 closes #23105 closes #23355 Co-authored-by: Humberto Arocha <hbto@vauxoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions