Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

如果您登录系统碰到问题,请在微信公众号留言:

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.


Log in to reply