diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-04-15 15:40:54 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-04-15 15:47:10 +0200 |
| commit | cbc0dace389345a5749fd6841befc1ad18f178a8 (patch) | |
| tree | 8ab5108efc61a3553c7ef45146c122b9b66ef73b /addons/web/static/src/xml/base.xml | |
| parent | c538bedd53ab1dd5f01eccf2947a04585ecf470b (diff) | |
[FIX] account: currency round amounts for exchange rate difference
The method `create_exchange_rate_entry` is called
either if one of the two parameter
`amount_diff` or `diff_in_currency` is not equal to 0.0
(or, near to zero, `float_is_zero`):
```
if currency and aml_to_balance \
and (float_is_zero(total_amount_currency, precision_rounding=currency.rounding) \
or float_compare(total_debit, total_credit, precision_rounding=currency.rounding) == 0):
```
Nevertheless, the method is called with the amounts not rounded,
and, therefore, one could be considered to 0.0 (if
closed to 0.0) but not be exactly equal to 0.00,
and it should therefore be rounded before the entries
creation.
opw-673854
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions
