diff --git a/odoo/http.py b/odoo/http.py index b7d65862861..1fa110294d9 100644 --- a/odoo/http.py +++ b/odoo/http.py @@ -200,6 +200,9 @@ mimetypes.add_type('application/x-font-ttf', '.ttf') mimetypes.add_type('image/webp', '.webp') # Add potentially wrong (detected on windows) svg mime types mimetypes.add_type('image/svg+xml', '.svg') +# this one can be present on windows with the value 'text/plain' which +# breaks loading js files from an addon's static folder +mimetypes.add_type('text/javascript', '.js') # To remove when corrected in Babel babel.core.LOCALE_ALIASES['nb'] = 'nb_NO'