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

I was trying to uninstall an addon from my database then i got this error:

any help?

Traceback (most recent call last):
  File "/home/zyadhamdy/odoo/15e/odoo/api.py", line 886, in get
    return field_cache[record._ids[0]]
KeyError: 

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/zyadhamdy/odoo/15e/odoo/fields.py", line 1057, in __get__
    value = env.cache.get(record, self)
  File "/home/zyadhamdy/odoo/15e/odoo/api.py", line 889, in get
    raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: 'ir.model(,).count'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/zyadhamdy/odoo/15e/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/home/zyadhamdy/odoo/15e/odoo/http.py", line 688, in dispatch
    result = self._call_function(**self.params)
  File "/home/zyadhamdy/odoo/15e/odoo/http.py", line 360, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/zyadhamdy/odoo/15e/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/zyadhamdy/odoo/15e/odoo/http.py", line 349, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/zyadhamdy/odoo/15e/odoo/http.py", line 917, in __call__
    return self.method(*args, **kw)
  File "/home/zyadhamdy/odoo/15e/odoo/http.py", line 536, in response_wrap
    response = f(*args, **kw)
  File "/home/zyadhamdy/odoo/15e/odoo/addons/web/controllers/main.py", line 1348, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/zyadhamdy/odoo/15e/odoo/addons/web/controllers/main.py", line 1340, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/zyadhamdy/odoo/15e/odoo/api.py", line 464, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/home/zyadhamdy/odoo/15e/odoo/api.py", line 451, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/home/zyadhamdy/odoo/15e/odoo/models.py", line 6486, in onchange
    snapshot1 = Snapshot(record, nametree)
  File "/home/zyadhamdy/odoo/15e/odoo/models.py", line 6268, in __init__
    self.fetch(name)
  File "/home/zyadhamdy/odoo/15e/odoo/models.py", line 6276, in fetch
    self[name] = [Snapshot(line, tree[name]) for line in record[name]]
  File "/home/zyadhamdy/odoo/15e/odoo/models.py", line 6276, in 
    self[name] = [Snapshot(line, tree[name]) for line in record[name]]
  File "/home/zyadhamdy/odoo/15e/odoo/models.py", line 6268, in __init__
    self.fetch(name)
  File "/home/zyadhamdy/odoo/15e/odoo/models.py", line 6278, in fetch
    self[name] = record[name]
  File "/home/zyadhamdy/odoo/15e/odoo/models.py", line 5885, in __getitem__
    return self._fields[key].__get__(self, type(self))
  File "/home/zyadhamdy/odoo/15e/odoo/fields.py", line 1106, in __get__
    self.compute_value(recs)
  File "/home/zyadhamdy/odoo/15e/odoo/fields.py", line 1265, in compute_value
    records._compute_field_value(self)
  File "/home/zyadhamdy/odoo/15e/odoo/models.py", line 4255, in _compute_field_value
    getattr(self, field.compute)()
  File "/home/zyadhamdy/odoo/15e/odoo/addons/base/models/ir_model.py", line 203, in _compute_count
    records = self.env[model.model]
  File "/home/zyadhamdy/odoo/15e/odoo/api.py", line 540, in __getitem__
    return self.registry[model_name]._browse(self, (), ())
  File "/home/zyadhamdy/odoo/15e/odoo/modules/registry.py", line 182, in __getitem__
    return self.models[model_name]
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/zyadhamdy/odoo/15e/odoo/http.py", line 644, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/zyadhamdy/odoo/15e/odoo/http.py", line 302, in _handle_exception
    raise exception.with_traceback(None) from new_cause
KeyError: 'magento.configure'


Avatar
Discard

Did you find a solution to this ? i have a similair problem

Best Answer

go to views and check search by key using your uninstall module name may be there is some inherited view related to that module is not remove. try to remove that and then check

Avatar
Discard