summaryrefslogtreecommitdiff
path: root/addons/base_import/static/csv/database_import_test.sql
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2016-04-04 11:51:58 +0200
committerGéry Debongnie <ged@odoo.com>2016-04-04 12:18:17 +0200
commit3d4954b88f2a4e75dee6d0b74c79b924ae0d6d2d (patch)
treeda2892d2668e6ec27d76f29a436d472f59754a14 /addons/base_import/static/csv/database_import_test.sql
parente49893ab2deea0d0be9b1ffcdfae56db1d2fc7c9 (diff)
[FIX] web: some float fields silently ignores their changes
We have an interesting problem when editing all custom float fields and all fields with no explicit digit attributes: the propertiesmixin tries to check if the number was changed, according to their declared precision. But for these specific fields, it does not find a digit attribute, and defaults to 2. Then, it makes sure that the changes are ignored if the new value is too close to the old value (with 2 digits precision) For example, if the user sets the value to 1.234, then save, then change it to 1.235, then save, the form view will display 1.234 and totally ignore the change. Not that handling the digit precision is done in the propertiesmixin and in the field float widget. Also, they do different things, and in some case, may not be the same. All this logic should be moved to the fieldfloat widget.
Diffstat (limited to 'addons/base_import/static/csv/database_import_test.sql')
0 files changed, 0 insertions, 0 deletions