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 | |
| parent | 017ee5eab376b4f09beb62812c1cbc682009ed86 (diff) | |
[FIX] *: leftover invalid uses of `pycompat`
| -rw-r--r-- | odoo/addons/base/ir/ir_http.py | 2 | ||||
| -rw-r--r-- | odoo/tools/float_utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/odoo/addons/base/ir/ir_http.py b/odoo/addons/base/ir/ir_http.py index 3b19add6ea9..87025f6f8ea 100644 --- a/odoo/addons/base/ir/ir_http.py +++ b/odoo/addons/base/ir/ir_http.py @@ -209,7 +209,7 @@ class IrHttp(models.AbstractModel): @classmethod def _postprocess_args(cls, arguments, rule): """ post process arg to set uid on browse records """ - for key, val in list(pycompat.items(arguments)): + for key, val in list(arguments.items()): # Replace uid placeholder by the current request.uid if isinstance(val, models.BaseModel) and isinstance(val._uid, RequestUID): arguments[key] = val.sudo(request.uid) 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 |
