summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorRichard Mathot <rim@odoo.com>2015-12-23 12:35:05 +0100
committerRichard Mathot <rim@odoo.com>2015-12-29 09:05:01 +0100
commitc9ed8aec914409deff7ff8d7d44254b3e9854dff (patch)
tree7ac398f5d13ad7193c4c5242d056c6ebc8ed2f07 /addons/web_editor/static/src/js
parenta4ddfe0b286ac1afde0c6c9b7dd3f6c25cb1a3de (diff)
[IMP] XML import: float values are not passed as strings anymore
When you import a record from a XML file, values passed to float fields are not casted as floats. Eg: ``<field name="price">1.0</field>`` is parsed as '1.0' string. The method _update from ir_model.py seems to accept these "fake floats" strings BUT, if you override write() in a module, you can't guess that values meant to be written in a float field are actually strings Eg: The override of write() in sale.order.line expects a float and crash at second install. (try twice `-i sale` in a 9.0 database) In order to fix this, we apply the same reasoning than for integers (two lines above).
Diffstat (limited to 'addons/web_editor/static/src/js')
0 files changed, 0 insertions, 0 deletions