源码安装后第一次启动就报这个:“TypeError: 'NoneType' object is not subscriptable”应该怎样处理?
-
D:\odoo-16\odoo-16.0\venv\Scripts\python.exe D:\odoo-16\odoo-16.0\odoo-bin -c D:\odoo-16\odoo-16.0\odoo.conf
2023-02-10 01:01:07,414 4808 INFO ? odoo: Odoo version 16.0
2023-02-10 01:01:07,414 4808 INFO ? odoo: Using configuration file at D:\odoo-16\odoo-16.0\odoo.conf
2023-02-10 01:01:07,414 4808 INFO ? odoo: addons paths: ['D:\odoo-16\odoo-16.0\odoo\addons', 'c:\users\13692\appdata\local\openerp s.a\odoo\addons\16.0', 'd:\odoo-16\odoo-16.0\odoo\addons', 'd:\odoo-16\odoo-16.0\addons']
2023-02-10 01:01:07,414 4808 INFO ? odoo: database: odoo16@localhost:5432
2023-02-10 01:01:07,501 4808 INFO ? odoo.addons.base.models.ir_actions_report: A package may be missing to print Data Matrix barcodes: pylibdmtx or libdmtx.
2023-02-10 01:01:07,507 4808 INFO ? odoo.addons.base.models.ir_actions_report: You need Wkhtmltopdf to print a pdf version of the reports.
2023-02-10 01:01:07,688 4808 INFO ? odoo.service.server: HTTP service (werkzeug) running on billchen:8069
2023-02-10 01:01:17,351 4808 ERROR ? odoo.http: Exception during request handling.
Traceback (most recent call last):
File "D:\odoo-16\odoo-16.0\odoo\http.py", line 1953, in call
response = request._serve_nodb()
File "D:\odoo-16\odoo-16.0\odoo\http.py", line 1507, in _serve_nodb
response = self.dispatcher.dispatch(rule.endpoint, args)
File "D:\odoo-16\odoo-16.0\odoo\http.py", line 1678, in dispatch
return endpoint(**self.request.params)
File "D:\odoo-16\odoo-16.0\odoo\http.py", line 673, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "d:\odoo-16\odoo-16.0\addons\web\controllers\home.py", line 32, in index
if request.session.uid and not is_user_internal(request.session.uid):
File "d:\odoo-16\odoo-16.0\addons\web\controllers\utils.py", line 204, in is_user_internal
return request.env['res.users'].browse(uid)._is_internal()
TypeError: 'NoneType' object is not subscriptable
2023-02-10 01:01:17,367 4808 INFO ? werkzeug: 127.0.0.1 - - [10/Feb/2023 01:01:17] "GET / HTTP/1.1" 500 - 1 0.003 0.103 -
@billchen0769 有没有加载第三方的全局模块
server_wide_modules
, post一下你的odoo.conf