diff options
| author | Victor Feyens <vfe@odoo.com> | 2019-11-12 13:26:25 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-11-12 17:03:58 +0000 |
| commit | 20edf21fdada5be97df7214cfbe1b53900915f5b (patch) | |
| tree | 6067d3c397e4c293851c20f6bef2deab8b85e9a9 /addons/web/static/src/js/views/basic | |
| parent | 96daa295c741955078233378cc5fab777011a793 (diff) | |
[FIX] orm: do not try to convert zero amount for monetary fields.
When assigning a default value to a computed monetary field, if self
contains records with different currencies, the assignation will fail
when trying to round the value (because self[currency_field] is a
recordset of multiple currencies).
Globally, assigning a monetary value to records in different currencies
should never happen. The only case we want to support is defaulting a
computed monetary to 0.0.
Add clear error when trying to set monetaries in multi-currency.
closes odoo/odoo#40155
X-original-commit: 3a58dfa1e51702a659e9113271f19d087e3ec349
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Co-authored-by: Raphael Collet <rco@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
