后台报错了,把报错信息贴出来啊
墨西西比河
-
odoo report -
产品和价格表找不到 -
odoo11社区版新建模块,加载路径到addons后,开启服务报错,这怎么解决这个问题解决了。我使用的方法是换掉了数据库,且addons新加入的路径换回来了
2次执行的代码如下:
./odoo/odoo-bin -d todo --addons-path ="custom-addons, odoo/addons" --save 这是报错的代码./odoo-bin -d demo2 --addons-path="addons" --save 这是没报错的代码
刚接触Odoo许多知识还在补充,希望各位指正。 -
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