diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-12-05 14:52:16 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-12-05 14:52:16 +0100 |
| commit | 970be94f3763e40a75885f93840e2be40572fc54 (patch) | |
| tree | 01a0ff07ddf5cd6e81fda031255c120146c9c6c0 /odoo/tools/float_utils.py | |
| parent | a447da75fd6f3c76aa4db80d9a83d5e56fa0854d (diff) | |
| parent | e9c2dcd28dd6e65a3d71300612a9b7d14d6731d6 (diff) | |
[MERGE] forward port branch saas-14 up to e9c2dcd28dd
Diffstat (limited to 'odoo/tools/float_utils.py')
| -rw-r--r-- | odoo/tools/float_utils.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/odoo/tools/float_utils.py b/odoo/tools/float_utils.py index 127c546125f..69c11148abe 100644 --- a/odoo/tools/float_utils.py +++ b/odoo/tools/float_utils.py @@ -176,24 +176,6 @@ def float_split(value, precision_digits): return int(units), int(cents) -class float_precision(float): - """ A class for float values that carry precision digits. This is a thin - layer on top of ``float``, and the precision digits are not propagated - to the result of arithmetic operations. This class is used when - converting monetary values to cache, and for serializing them to the - database. - """ - __slots__ = ['precision_digits'] - - def __new__(cls, value, precision_digits): - obj = super(float_precision, cls).__new__(cls, value) - obj.precision_digits = precision_digits - return obj - - def float_repr(self): - return _float_repr(self, self.precision_digits) - - if __name__ == "__main__": import time |
