diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2018-04-10 12:39:58 +0200 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2018-04-11 08:57:20 +0200 |
| commit | b79d8b99ff39d1889df89debed012fc7cc54598e (patch) | |
| tree | 1bf8b06ba89a6cec629a2113c278c76f4863fd34 /addons/web/static | |
| parent | 8d851e4a17ca41f6a00a3937b789f04240a67c59 (diff) | |
[FIX] base: amount_to_text possible difference
In 79038055 amount_to_text was refactored and improved, but there is a
drawback.
ie. if we have .29 cents with two decimals, `Twenty-Eight` was displayed
because `int(0.29 * 100) == 28` due to floating-point representation.
This commit keeps the improvements and fix this issue by using string
formatting of float as was done before.
opw-1829924
closes #24161
Diffstat (limited to 'addons/web/static')
0 files changed, 0 insertions, 0 deletions
