Skip to Content
Menu
This question has been flagged
2 Replies
2723 Views

Hello,

Odoo version is 11.

Would you please kindly help to solve this error? Million thanks in advance.

When try import in all section, e.g. Products, Contacts, etc. Same error pop up (below).

Please kindly advise how to fix it.


Odoo Server Error
Traceback (most recent call last):
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 646, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 307, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\tools\pycompat.py", line 87, in reraise
    raise value
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 683, in dispatch
    result = self._call_function(**self.params)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 339, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\service\model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 332, in checked_call
    result = self.endpoint(*a, **kw)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 927, in __call__
    return self.method(*args, **kw)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 512, in response_wrap
    response = f(*args, **kw)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\web\controllers\main.py", line 924, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\addons\web\controllers\main.py", line 916, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\api.py", line 760, in __getitem__
    return self.registry[model_name]._browse((), self)
  File "C:\Program Files (x86)\Odoo 11.0\server\odoo\modules\registry.py", line 181, in __getitem__
    return self.models[model_name]
KeyError: 'base_import.import'
Avatar
Discard
Best Answer

Hello, try to restart odoo server, wrok for me.

Avatar
Discard
Best Answer

Normally this happens when the source code of Odoo is modified and there is an error preventing the Python compiler from create the Byte Code. An error in the file defining the import class would throw this error.

Did you edit any code?

Avatar
Discard