diff options
| author | Raphael Collet <rco@odoo.com> | 2020-10-06 12:11:48 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2020-10-13 17:05:19 +0000 |
| commit | 9b71458937fd15f357923434b41f95eb95af57a1 (patch) | |
| tree | 190ca49a59ca79f4713651deed98167abc0a9bd9 /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | c107edf7077399c2ffa60b85a291ec3830d8432d (diff) | |
[FIX] core: assignment of size to new records
Upon onchange, the web client sends unchanged image fields on one2many
lines as "bin size" values, while changed image fields are sent as their
full value. As the value is not base64-encoded, the assignment of that
value crashes.
Fix it by making assignment on new records not crash when decoding the
image: the value is simply not assigned to the field. In the situation
described above, the record being assigned is a new record with a real
record as origin. Because the field is actually not assigned, its value
is implicitly the value of the field on the origin record, which is
consistent with the fact that the field was not modified in the form.
X-original-commit: 4442d6f0f29a2bf6e992515cd535c88215855a36
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
