summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorPriyanka Kakadiya <pka@odoo.com>2019-06-21 11:45:00 +0000
committerXavier Morel <xmo@odoo.com>2019-06-27 08:26:49 +0000
commit5eb15c01b556620c77c0f7327494d4bf3117d115 (patch)
treea5228ca7743bf93b60c487739ec91b7a56d9d8ad /addons/web/static/src/js/fields/basic_fields.js
parentd870749d79f079f9e88b9894c03fa24c97922c9f (diff)
[FIX] base, web: missing extension on binary downloads
It's currently possible for binary downloads to be missing an extension entirely. Generate an extension from the mimetype and use that. Also ensure the existing extension (if any) matches the mimetype. Warning: this may require adding new mimetype/extensions pairs to the local mimetype database similar to f413d155df1c8f8fc15877fb6d9f737472291ae3. Also fix missing or incorrect filenames on records without a filename field: in some Odoo versions the client would send a filename of "null", resulting in a download of e.g. "null.pdf" instead of the attachment or inferred name. Task 2025716 closes odoo/odoo#34299 Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions