summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authordhr-odoo <dhr@openerp.com>2014-11-26 10:24:58 +0530
committerDavid Monjoie <dmo@odoo.com>2015-04-16 15:30:20 +0200
commitd0ef1b938d1525d994895b743f980c6ce1eb4e40 (patch)
tree0182c2ebd7e18dd17f2fa2e49fccf29e52173d21 /addons/web/static/src
parentcd94f10e1dccec0fc17df61992f785514fe2204e (diff)
[FIX] Fixed wrong digits format issue for float fields when thousand separator is '.'
The function was returning the number value directly before proceeding to any formatting.
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/formats.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/addons/web/static/src/js/formats.js b/addons/web/static/src/js/formats.js
index cddeced29ca..d9126184c38 100644
--- a/addons/web/static/src/js/formats.js
+++ b/addons/web/static/src/js/formats.js
@@ -233,10 +233,7 @@ instance.web.parse_value = function (value, descriptor, value_if_empty) {
throw new Error(_.str.sprintf(_t("'%s' is not a correct integer"), value));
return tmp;
case 'float':
- var tmp = Number(value);
- if (!isNaN(tmp))
- return tmp;
-
+ var tmp;
var tmp2 = value;
do {
tmp = tmp2;