[FIX] web: rounding of fields

round_precision expects a decimal (e.g. 0.01) while digits contains the number
of digits (e.g. 2)
replace by round_decimals
This commit is contained in:
Martin Trigaux 2015-01-21 16:04:29 +01:00
parent 495ec92251
commit 4f14290670
1 changed files with 1 additions and 1 deletions

View File

@ -2537,7 +2537,7 @@ instance.web.form.FieldFloat = instance.web.form.FieldChar.extend({
value_ = 0;
}
if (this.digits !== undefined && this.digits.length === 2) {
value_ = instance.web.round_precision(value_, this.digits[1]);
value_ = instance.web.round_decimals(value_, this.digits[1]);
}
this._super.apply(this, [value_]);
},