mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Modifications needed for Odoo 11.0 and Python3
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user