一进去odoo服务器白屏看不到页面,点开前端响应后发现这个JS 404没有找到,了解了一下这个JS属于附件
然后去ir_attachment模型里面查找发现存在这条记录
于是把这条记录删除,然后重新插入,页面就能正常进入了
插入的sql语句如下:
INSERT INTO “public”.“ir_attachment” (“id”, “name”, “description”, “res_model”, “res_field”, “res_id”, “company_id”, “type”, “url”, “public”, “access_token”, “db_datas”, “store_fname”, “file_size”, “checksum”, “mimetype”, “index_content”, “create_uid”, “create_date”, “write_uid”, “write_date”, “original_id”) VALUES (97, ‘web.assets_backend_prod_only.js’, NULL, ‘ir.ui.view’, NULL, 0, 1, ‘binary’, ‘/web/content/19093-6efa5cd/web.assets_backend_prod_only.js’, ‘t’, NULL, NULL, ‘6a/6ad87633490735f27b4f73d8d984193d8d7d6947’, 2159, ‘6ad87633490735f27b4f73d8d984193d8d7d6947’, ‘application/javascript’, ‘application’, 1, ‘2023-03-09 08:04:27.921459’, 1, ‘2023-03-09 08:04:27.921459’, NULL);
odoo 启动白屏 Failed to load resource: the server responded with a status of 404 (NOT FOUND)
最新推荐文章于 2024-05-27 17:00:50 发布