odoo11社区版新建模块,加载路径到addons后,开启服务报错,这怎么解决
-
ERROR: relation "ir_model" does not exist
LINE 1: SELECT * FROM ir_model WHERE state='manual'
^2019-07-02 08:49:52,922 8529 WARNING todo odoo.modules.loading: Transient module states were reset
2019-07-02 08:49:52,922 8529 ERROR todo odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/home/u18/odoo-dev/odoo/odoo/modules/registry.py", line 85, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/u18/odoo-dev/odoo/odoo/modules/loading.py", line 383, in load_modules
registry.setup_models(cr)
File "/home/u18/odoo-dev/odoo/odoo/modules/registry.py", line 264, in setup_models
env['ir.model']._add_manual_models()
File "/home/u18/odoo-dev/odoo/odoo/addons/base/ir/ir_model.py", line 290, in _add_manual_models
cr.execute('SELECT * FROM ir_model WHERE state=%s', ['manual'])
File "/home/u18/odoo-dev/odoo/odoo/sql_db.py", line 155, in wrapper
return f(self, *args, **kwargs)
File "/home/u18/odoo-dev/odoo/odoo/sql_db.py", line 232, in execute
res = self._obj.execute(query, params)
psycopg2.errors.UndefinedTable: relation "ir_model" does not exist
LINE 1: SELECT * FROM ir_model WHERE state='manual