diff options
| author | Alexandre Kühn <aku@odoo.com> | 2018-04-17 17:10:05 +0200 |
|---|---|---|
| committer | Alexandre Kühn <aku@odoo.com> | 2018-05-04 17:10:29 +0200 |
| commit | c3ce7123593e8819f0bb933c6809b8e1df5656ce (patch) | |
| tree | c4cbd410d21cabe6b4f7368293fbd127852cad49 /addons/web_editor/static/src/js | |
| parent | aab2ceefec879da7e9b2bd93a08217d0014db604 (diff) | |
[FIX] web: correctly display filename when uploading a file
Before this commit, we had the following issue with binary widget in a form:
Suppose we have a binary field with filename attribute set. When uploading a
new file 'temp.txt' with content 'Cg==', the displayed value is 'Cg=='. When
the changes are saved, the displayed value becomes 'temp.txt'.
It should always display 'temp.txt', which is what is fixed by this commit.
In addition to fixing this issue, we describe what is the expected displayed
value of a binary field. This is based on whether the attribute filename is
provided, and whether the record is in edit or read-only mode.
Fixes #21630
Closes #24275
Co-authored-by: Nick Booker <nick.booker@opusvl.com>
Diffstat (limited to 'addons/web_editor/static/src/js')
0 files changed, 0 insertions, 0 deletions
