[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:
parent
495ec92251
commit
4f14290670
|
@ -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_]);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue