diff options
| author | Richard Mathot <rim@odoo.com> | 2015-12-23 12:35:05 +0100 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2015-12-29 09:05:01 +0100 |
| commit | c9ed8aec914409deff7ff8d7d44254b3e9854dff (patch) | |
| tree | 7ac398f5d13ad7193c4c5242d056c6ebc8ed2f07 /addons/web_editor/static | |
| parent | a4ddfe0b286ac1afde0c6c9b7dd3f6c25cb1a3de (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')
0 files changed, 0 insertions, 0 deletions
