问题描述:
今天ODOO在安装用餐模块后突然白屏,除了一个LOGO显示,其实什么内容都不显示了,好几个JS报以下错误:
Refused to execute script from 'http://_:_*/web/content/246-6b457dc/web.assets_common.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
GOOGLE以后找到以下解决方案:
原因是: ir_attachment 表里保存的JS文件的Mime Type错了,解决方法是:把mimetype字段的内容改成application/javascript
原文:https://github.com/odoo/odoo/issues/12902