diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-12-05 16:46:14 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-12-05 16:46:14 +0100 |
| commit | b8540eefe3b82fc4a54c8a808ce3bfa0bea8a29a (patch) | |
| tree | f6c631c860d1decc712be66dcb0bfbcd186d8872 /odoo/tools/float_utils.py | |
| parent | 519555054a3a0e2e0b8a139518da081c4d5e80aa (diff) | |
| parent | 970be94f3763e40a75885f93840e2be40572fc54 (diff) | |
[MERGE] forward port branch saas-15 up to 970be94f376
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 8c71d7a29b2..b3e20343ebf 100644 --- a/odoo/tools/float_utils.py +++ b/odoo/tools/float_utils.py @@ -180,24 +180,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 |
