[FIX] web: decimal separator of percentage
When a percentage if formatted, the decimal separator used is always `.`, while it should be the decimal separator of the language. opw-1908220 closes odoo/odoo#30030
This commit is contained in:
@@ -363,7 +363,7 @@ function formatPercentage(value, field, options) {
|
||||
if (options.humanReadable && options.humanReadable(value * 100)) {
|
||||
return result + "%";
|
||||
}
|
||||
return parseFloat(result) + "%";
|
||||
return (parseFloat(result) + "%").replace('.', _t.database.parameters.decimal_point);
|
||||
}
|
||||
/**
|
||||
* Returns a string representing the value of the selection.
|
||||
|
||||
Reference in New Issue
Block a user