From d0ef1b938d1525d994895b743f980c6ce1eb4e40 Mon Sep 17 00:00:00 2001 From: dhr-odoo Date: Wed, 26 Nov 2014 10:24:58 +0530 Subject: [PATCH] [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. --- addons/web/static/src/js/formats.js | 5 +---- 1 file changed, 1 insertion(+), 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;