-
- 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#104346
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 7 additions, 3 deletionsodoo/fields.py
Loading