diff options
Diffstat (limited to 'addons/web/static/src/js/fields/field_utils.js')
| -rw-r--r-- | addons/web/static/src/js/fields/field_utils.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/web/static/src/js/fields/field_utils.js b/addons/web/static/src/js/fields/field_utils.js index 4f637994c47..b62a3db7921 100644 --- a/addons/web/static/src/js/fields/field_utils.js +++ b/addons/web/static/src/js/fields/field_utils.js @@ -329,8 +329,8 @@ function formatX2Many(value) { * the number of digits that should be used, instead of the default * digits precision in the field. Note: if the currency defines a * precision, the currency's one is used. - * @param {boolean} [options.html=true] - * if true, returns a string encoding the html formatted value (with + * @param {boolean} [options.forceString=false] + * if false, returns a string encoding the html formatted value (with * whitespace encoded as ' ') * @returns {string} */ @@ -338,7 +338,7 @@ function formatMonetary(value, field, options) { if (value === false) { return ""; } - options = Object.assign({ html: true }, options); + options = Object.assign({ forceString: false }, options); var currency = options.currency; if (!currency) { @@ -361,7 +361,7 @@ function formatMonetary(value, field, options) { if (!currency || options.noSymbol) { return formatted_value; } - const ws = options.html ? ' ' : ' '; + const ws = options.forceString ? ' ' : ' '; if (currency.position === "after") { return formatted_value + ws + currency.symbol; } else { |
