odoo12 在安装自定义模块时报错 TypeError: Model 'account' does not exist in registry.
-
odoo12 在安装时报TypeError: Model 'account' does not exist in registry. 在查询后可能是没有在__manifest__.py文件中的depends中添加对应的依赖,现在添加后仍然出现相同的错误,希望各位大佬在看到后,有时间能指导指导一下,十分感谢!
Odoo Server Error
Traceback (most recent call last):
File "/home/jixinde/jixinde_erp/odoo12/odoo/http.py", line 654, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/jixinde/jixinde_erp/odoo12/odoo/http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/jixinde/jixinde_erp/odoo12/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/home/jixinde/jixinde_erp/odoo12/odoo/http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "/home/jixinde/jixinde_erp/odoo12/odoo/http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/jixinde/jixinde_erp/odoo12/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/home/jixinde/jixinde_erp/odoo12/odoo/http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "/home/jixinde/jixinde_erp/odoo12/odoo/http.py", line 939, in call
return self.method(*args, **kw)
File "/home/jixinde/jixinde_erp/odoo12/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/home/jixinde/jixinde_erp/odoo12/addons/web/controllers/main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "/home/jixinde/jixinde_erp/odoo12/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/jixinde/jixinde_erp/odoo12/odoo/api.py", line 749, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/home/jixinde/jixinde_erp/odoo12/odoo/api.py", line 736, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "/home/jixinde/jixinde_erp/odoo12/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
return method(self, *args, **kwargs)
File "/home/jixinde/jixinde_erp/odoo12/odoo/addons/base/models/ir_module.py", line 445, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/home/jixinde/jixinde_erp/odoo12/odoo/addons/base/models/ir_module.py", line 561, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/home/jixinde/jixinde_erp/odoo12/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/jixinde/jixinde_erp/odoo12/odoo/modules/loading.py", line 421, in load_modules
loaded_modules, update_module, models_to_check)
File "/home/jixinde/jixinde_erp/odoo12/odoo/modules/loading.py", line 313, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/home/jixinde/jixinde_erp/odoo12/odoo/modules/loading.py", line 188, in load_module_graph
model_names = registry.load(cr, package)
File "/home/jixinde/jixinde_erp/odoo12/odoo/modules/registry.py", line 240, in load
model = cls._build_model(self, cr)
File "/home/jixinde/jixinde_erp/odoo12/odoo/models.py", line 439, in _build_model
raise TypeError("Model %r does not exist in registry." % name)
TypeError: Model 'account' does not exist in registry.