diff options
| author | Christophe Monniez <moc@odoo.com> | 2017-11-06 16:59:54 +0100 |
|---|---|---|
| committer | Christophe Monniez <moc@odoo.com> | 2017-12-12 09:42:55 +0100 |
| commit | 17c9208889d91d4302797d8f72a6ebc4968ff2e4 (patch) | |
| tree | 61a523fb9db622d1637a36bfceaa731306c870da /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 6d02f7d6bfa5c59495c44db35d39a2eeef59e395 (diff) | |
[FIX] base: backport of set mimetype on js and css assets
On MS Windows, the mimetypes module relies on the Windows Registry to
guess mimetypes. As a consequence, when generating assets bundle for
javascript files, the mime type of js files may be wrong. In that
particular case, the Odoo user is facing an empty web page.
This commit enforce 'application/javascript' for js assets when they are
saved as ir_attachment in the database.
This commit is a backport of 77ca51f
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
