summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2016-11-03 13:52:12 +0100
committerNicolas Lempereur <nle@odoo.com>2016-11-08 11:14:36 +0100
commit3c3cced5d964f410f32c410cce1133f504bdad2f (patch)
treea04cb2e8838357d6f10a8fffe231b0d2e6636416 /addons/web/static/src/js
parent929cfc26166d9bc59bd332a6f0533ae67ce65d80 (diff)
[FIX] openerp: monetary not xmlrpc serializable
Since 1ba91042d monetary fields values could be represented by a float_precision which is aimed as an improvment for digit precision when saving a monetary field value to the database. xmlrpclib (we are using to serialze the response) is handling some common datatypes, but for custom one we would need to register it with how it needs to be serialized. This commit add a convert_to_read method to the Monetary field so when reading monetary fields value we get the float numbers and not the float_precision ones. The float_precision is needed when saving, so it is alright to have float when reading. fixes #13857 closes #14125 opw-692373
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions