diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-08-24 13:43:19 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-08-24 13:43:19 +0200 |
| commit | 4837f4ef174794914fa2deaff2a5fb8f0c7807d9 (patch) | |
| tree | 111a0059da2c48e6dbc13b9d9b7772ba565f1e4b /odoo/tools/float_utils.py | |
| parent | 017ee5eab376b4f09beb62812c1cbc682009ed86 (diff) | |
[FIX] *: leftover invalid uses of `pycompat`
Diffstat (limited to 'odoo/tools/float_utils.py')
| -rw-r--r-- | odoo/tools/float_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/tools/float_utils.py b/odoo/tools/float_utils.py index 93f3c79ef2a..9dc751604c2 100644 --- a/odoo/tools/float_utils.py +++ b/odoo/tools/float_utils.py @@ -77,7 +77,7 @@ def float_round(value, precision_digits=None, precision_rounding=None, rounding_ epsilon = 2**(epsilon_magnitude-53) if rounding_method == 'HALF-UP': normalized_value += math.copysign(epsilon, normalized_value) - rounded_value = pycompat.round(normalized_value) # round to integer + rounded_value = round(normalized_value) # round to integer # TIE-BREAKING: UP (for ceiling operations) # When rounding the value up, we instead subtract the epsilon value |
