Reviewers: ,
Please review this at http://codereview.tryton.org/74005/
Affected files:
M trytond/model/modelstorage.py
Index: trytond/model/modelstorage.py
===================================================================
--- a/trytond/model/modelstorage.py
+++ b/trytond/model/modelstorage.py
@@ -25,6 +25,7 @@
from trytond.transaction import Transaction
from trytond.pool import Pool
from trytond.cache import LRUDict
+from trytond.config import CONFIG
class ModelStorage(Model):
@@ -1108,7 +1109,7 @@
if not
(value.quantize(Decimal(str(10.0**-digits[1])))
== value):
raise_user_error()
- else:
+ elif CONFIG.options['db_type'] != 'mysql':
if not (round(value, digits[1]) == float(value)):
raise_user_error()
# validate digits
--
[email protected] mailing list