summaryrefslogtreecommitdiff
path: root/odoo/fields.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-11-08 15:01:20 +0100
committerChristophe Simonis <chs@odoo.com>2016-11-08 15:01:20 +0100
commit3d085f632d4c5a8aece92731494e1dbbc8923049 (patch)
tree373dc715bb2f38482300fd66b1fb022104173b98 /odoo/fields.py
parent74ef15f01f123bc4adbfdaeb3d20b6c77341492a (diff)
parent63860373acb47356c7731cbc8258af0fd7fd9da4 (diff)
[MERGE] forward port branch saas-12 up to 6386037
Diffstat (limited to 'odoo/fields.py')
-rw-r--r--odoo/fields.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/odoo/fields.py b/odoo/fields.py
index e5cd453ed1d..11320fb5877 100644
--- a/odoo/fields.py
+++ b/odoo/fields.py
@@ -1243,6 +1243,13 @@ class Monetary(Field):
return float_precision(value, currency.decimal_places)
return float(value or 0.0)
+ def convert_to_read(self, value, record, use_name_get=True):
+ # float_precision values are not supported in pure XMLRPC
+ return float(value)
+
+ def convert_to_write(self, value, record):
+ return value
+
class _String(Field):
""" Abstract class for string fields. """