Skip to Content
Menu
This question has been flagged
3131 Views

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 177, in run_wsgi
    execute(self.server.app)
  File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 165, in execute
    application_iter = app(environ, start_response)
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/service/server.py", line 250, in app
    return self.app(e, s)
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/service/wsgi_server.py", line 184, in application
    return application_unproxied(environ, start_response)
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/service/wsgi_server.py", line 170, in application_unproxied
    result = handler(environ, start_response)
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/http.py", line 1495, in __call__
    return self.dispatch(environ, start_response)
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/http.py", line 1469, in __call__
    return self.app(environ, start_wrapped)
  File "/usr/lib/python2.7/dist-packages/werkzeug/wsgi.py", line 579, in __call__
    return self.app(environ, start_response)
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/http.py", line 1651, in dispatch
    ir_http = request.registry['ir.http']
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/http.py", line 365, in registry
    return openerp.modules.registry.RegistryManager.get(self.db) if self.db else None
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/modules/registry.py", line 355, in get
    update_module)
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/modules/registry.py", line 386, in new
    openerp.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/modules/loading.py", line 336, in load_modules
    force, status, report, loaded_modules, update_module)
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/modules/loading.py", line 239, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/modules/loading.py", line 132, in load_module_graph
    models = registry.load(cr, package)
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/modules/registry.py", line 169, in load
    model = cls._build_model(self, cr)
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/models.py", line 591, in _build_model
    original_module = pool[name]._original_module if name in parents else cls._module
  File "/home/pchouksey1/workspace/dexciss/simple/core/openerp/modules/registry.py", line 84, in __getitem__
    return self.models[model_name]
KeyError: 'stock.indent'

Avatar
Discard

Hello Apoorav, stock.indent class is from another module then put that module in the depends of current module.

When I added "dependency" in the manifest in odoo I got this error
I wanted to do a one2many relationship