diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-11-30 16:41:04 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-11-30 16:46:49 +0100 |
| commit | 021878f9c41c6d652abf345c3c5537fe92f8bc5b (patch) | |
| tree | a6ba0efcdeb5f872132e37c6466bcc69f2e679c0 /addons/web/static/src/js/framework | |
| parent | c352945bf51799526d82039205164883b9c72c50 (diff) | |
[FIX] tools: formatlang currency digits
When passing a value along with a currency
to the `formatLang` method,
the currency symbol was added to the value,
but the amount wasn't rounded to the currency
decimal places, as it would be expected.
For instance, when using the currency "XOF",
with as symbol "CFA" and 0 decimal places,
2 digits after the comma were still displayed
in the accounting dashboard, while the user expects none.
This behavior to take the number of digits out of the currency
is already the behavior of the `formatLang` methdod in the reports
(`/openerp/report/report_sxw.py`)
it was just not yet the case in the misceleanous tools
(`/openerp/tools/misc.py`).
opw-695496
Diffstat (limited to 'addons/web/static/src/js/framework')
0 files changed, 0 insertions, 0 deletions
