Skip to Content
Menu
This question has been flagged
1 Reply
2625 Views

Hi

After upgrading from 8 to 11 community (openupgrade) everything is working for my admin user.

If I login with a 'normal' user account, I get this error when clicking on "discussion":

EDIT: I just realized this happens only with a certain user. Other users are working...

I don't have any expense tracking module installed but I think I had it installed a long time ago on odoo8...


Fehler:
Odoo Server Error

Traceback (most recent call last):
  File "/home/odoo/odoo-11.0/odoo/http.py", line 651, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/odoo-11.0/odoo/http.py", line 310, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/home/odoo/odoo-11.0/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/home/odoo/odoo-11.0/odoo/http.py", line 693, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo/odoo-11.0/odoo/http.py", line 342, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/odoo-11.0/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/odoo-11.0/odoo/http.py", line 335, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/odoo/odoo-11.0/odoo/http.py", line 937, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/odoo-11.0/odoo/http.py", line 515, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/odoo-11.0/addons/web/controllers/main.py", line 934, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/odoo/odoo-11.0/addons/web/controllers/main.py", line 926, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/odoo/odoo-11.0/odoo/api.py", line 687, in call_kw
    return call_kw_model(method, model, args, kwargs)
  File "/home/odoo/odoo-11.0/odoo/api.py", line 672, in call_kw_model
    result = method(recs, *args, **kwargs)
  File "/home/odoo/odoo-11.0/addons/mail/models/mail_message.py", line 369, in message_fetch
    return self.search(domain, limit=limit).message_format()
  File "/home/odoo/odoo-11.0/addons/mail/models/mail_message.py", line 440, in message_format
    if message['model'] and self.env[message['model']]._original_module:
  File "/home/odoo/odoo-11.0/odoo/api.py", line 760, in __getitem__
    return self.registry[model_name]._browse((), self)
  File "/home/odoo/odoo-11.0/odoo/modules/registry.py", line 179, in __getitem__
    return self.models[model_name]
KeyError: 'hr.expense.expense'


Avatar
Discard
Best Answer

Hi,

odoo 11 does not have "hr.expense.expense" object.

so generate KeyError: 'hr.expense.expense'.
SolutionPlease install the module in which it comes to _name="
hr.expense.expense" (object) or redevelop module as per your need, either remove code.

Avatar
Discard
Related Posts Replies Views Activity
9
Jun 23
11130
2
Jan 22
2733
2
Dec 21
6269
0
Jun 21
1007
0
Feb 21
1541