diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2017-12-22 13:02:15 +0100 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2017-12-22 16:49:56 +0100 |
| commit | 4843839b248137e51cdf374d2307b4481bde61b7 (patch) | |
| tree | caa0b2c7fceaa5a876cdeb44ce30f4c1fa3a6ae2 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 174cd2aeee78a2d66c31cf3bbe3cccc32ebda282 (diff) | |
[FIX] web: upload file widget keep metadata fresh
When modifying files the a widget FieldMany2ManyBinaryMultiFiles would
not keep its metadata (currently associating attachment to [url,
allowUnlink]) up with current value.
So with an attachment added after init:
- clicking on it would error (because link is wrong)
- deleting it would unlink attachment originating from from onchange
The expected behavior is:
- being able to download attachments
- not unlinking attachment originating from onchange
and this is what this commit fixes.
opw-787746
closes #21813
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
