-
- Downloads
[FIX] core: find currency when writing monetary field
When creating a record, if a value is related to a monetary field and if the currency field is a non-stored related one, the value will not be rounding: when writing the monetary value in the database, we first call `convert_to_column`. In the parameter, `record` is empty (it is not yet created) and `values` only contains the stored values (so the currency value is not present). As a result, `currency` will not be defined and the value will not be rounded. OPW-2955202 closes odoo/odoo#105779 X-original-commit: 4456480b Related: odoo/enterprise#34091 Signed-off-by:Raphael Collet <rco@odoo.com>
Showing
- odoo/addons/test_new_api/models/test_new_api.py 1 addition, 0 deletionsodoo/addons/test_new_api/models/test_new_api.py
- odoo/addons/test_new_api/tests/test_new_fields.py 17 additions, 0 deletionsodoo/addons/test_new_api/tests/test_new_fields.py
- odoo/fields.py 10 additions, 6 deletionsodoo/fields.py
Loading
Please register or sign in to comment