Modifications needed for Odoo 11.0 and Python3

This commit is contained in:
Jared Kipe
2018-09-06 15:32:08 -07:00
parent 02319947bc
commit 735e0e896d
6 changed files with 14 additions and 43 deletions

View File

@@ -285,7 +285,7 @@ class XDecimal(XBuiltin):
value for python.
"""
if topython:
if isinstance(value, basestring) and len(value):
if isinstance(value, str) and len(value):
ret_val = Decimal(value)
else:
ret_val = None