[REF] web: ease FloatToggleField extension
Changes made in #98380 were missing an extension on the factor computation although already used. This commit introduces the needed extension. task-2974145 Part-of: odoo/odoo#100378
This commit is contained in:
committed by
Laurent Stukkens (LTU)
parent
abbf73a6e2
commit
976c7c88dc
@@ -18,8 +18,12 @@ export class FloatToggleField extends Component {
|
||||
this.props.update(this.props.range[currentIndex] / this.props.factor);
|
||||
}
|
||||
|
||||
get factor() {
|
||||
return this.props.factor;
|
||||
}
|
||||
|
||||
get formattedValue() {
|
||||
return formatFloat(this.props.value * this.props.factor, {
|
||||
return formatFloat(this.props.value * this.factor, {
|
||||
digits: this.props.digits,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user