diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-05-02 18:25:31 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-05-02 18:25:31 +0200 |
| commit | 3f6bb0f544d5bdd102eb06fbc7d5aa9095efc235 (patch) | |
| tree | 3232782bf1bfdb788dd1bafdb11f1cff839f469d /addons/web | |
| parent | eb19319585888988387b16cff7c7573b57b32a9b (diff) | |
| parent | 6441ea28b3424b365a56b9a11953058b2a1593fc (diff) | |
[MERGE] forward port branch saas-14 up to 6441ea28b34
Diffstat (limited to 'addons/web')
| -rw-r--r-- | addons/web/static/src/js/framework/formats.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/framework/formats.js b/addons/web/static/src/js/framework/formats.js index 479fa1082cd..c4d001a12e1 100644 --- a/addons/web/static/src/js/framework/formats.js +++ b/addons/web/static/src/js/framework/formats.js @@ -130,7 +130,7 @@ function parse_value (value, descriptor, value_if_empty) { } while(tmp !== value); tmp = Number(value); // do not accept not numbers or float values - if (isNaN(tmp) || tmp % 1) + if (isNaN(tmp) || tmp % 1 || tmp < -2147483648 || tmp > 2147483647) throw new Error(_.str.sprintf(_t("'%s' is not a correct integer"), value)); return tmp; case 'monetary': |
