2018-03-22 06:02:30,995 6744 INFO ? werkzeug: 127.0.0.1 - - [22/Mar/2018 06:02:30] "GET / HTTP/1.1" 500 -
2018-03-22 06:02:30,995 6744 ERROR ? werkzeug: Error on request:
Traceback (most recent call last):
File "D:\GOdoo11\runtime\Python35\lib\site-packages\werkzeug\serving.py", line 209, in run_wsgi
execute(self.server.app)
File "D:\GOdoo11\runtime\Python35\lib\site-packages\werkzeug\serving.py", line 197, in execute
application_iter = app(environ, start_response)
File "D:\GOdoo11\source\odoo\service\server.py", line 254, in app
return self.app(e, s)
File "D:\GOdoo11\source\odoo\service\wsgi_server.py", line 166, in application
return application_unproxied(environ, start_response)
File "D:\GOdoo11\source\odoo\service\wsgi_server.py", line 154, in application_unproxied
result = handler(environ, start_response)
File "D:\GOdoo11\source\odoo\http.py", line 1297, in __call__
self.load_addons()
File "D:\GOdoo11\source\odoo\http.py", line 1319, in load_addons
m = __import__('odoo.addons.' + module)
File "D:\GOdoo11\source\odoo\modules\module.py", line 82, in load_module
exec(open(modfile, 'rb').read(), new_mod.__dict__)
File "<string>", line 2, in <module>
ImportError: No module named 'models'
参考 [Error] Odoo v11 ImportError: No module named 'models':
在 __init__.py
中将 import models
改为 from . import models
感谢你,