This question has been flagged
1 Reply
6723 Views

As title says I can't install any apps or modules, in the beginning I thought it was because I had a windows installation, but when I migrated to linux, it throws this error message:

 Error:
Odoo Server Error

Traceback (most recent call last):
File "/opt/odoo/odoo11/odoo/tools/cache.py", line 84, in lookup
r = d[key]
File "/opt/odoo/odoo11/odoo/tools/func.py", line 68, in wrapper
return func(self, *args, **kwargs)
File "/opt/odoo/odoo11/odoo/tools/lru.py", line 44, in __getitem__
a = self.d[obj].me
KeyError: ('ir.actions.actions', <function IrActions.get_bindings at 0x7ff45c42ba60>, frozenset({1, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32, 33, 34, 35, 36, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56, 57, 58, 59, 65}), 'ir.module.module')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/odoo/odoo11/odoo/fields.py", line 937, in __get__
value = record.env.cache.get(record, self)
File "/opt/odoo/odoo11/odoo/api.py", line 960, in get
value = self._data[field][record.id][key]
KeyError: <odoo.api.Environment object at 0x7ff44aac0ba8>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/odoo/odoo11/odoo/http.py", line 651, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo11/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo11/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/opt/odoo/odoo11/odoo/http.py", line 693, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo11/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo11/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo11/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo11/odoo/http.py", line 937, in __call__
return self.method(*args, **kw)
File "/opt/odoo/odoo11/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo11/addons/web/controllers/main.py", line 934, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/odoo11/addons/web/controllers/main.py", line 926, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo11/odoo/api.py", line 687, in call_kw
return call_kw_model(method, model, args, kwargs)
File "/opt/odoo/odoo11/odoo/api.py", line 672, in call_kw_model
result = method(recs, *args, **kwargs)
File "/opt/odoo/odoo11/odoo/models.py", line 1295, in load_views
for [v_id, v_type] in views
File "/opt/odoo/odoo11/odoo/models.py", line 1295, in <dictcomp>
for [v_id, v_type] in views
File "/opt/odoo/odoo11/odoo/addons/base/module/module.py", line 158, in fields_view_get
res = super(Module, self).fields_view_get(view_id, view_type, toolbar=toolbar, submenu=False)
File "/opt/odoo/odoo11/odoo/models.py", line 1387, in fields_view_get
bindings = self.env['ir.actions.actions'].get_bindings(self._name)
File "<decorator-gen-27>", line 2, in get_bindings
File "/opt/odoo/odoo11/odoo/tools/cache.py", line 89, in lookup
value = d[key] = self.method(*args, **kwargs)
File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_actions.py", line 120, in get_bindings
result[binding_type].append(action.read()[0])
File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_actions.py", line 207, in read
result = super(IrActionsActWindow, self).read(fields, load=load)
File "/opt/odoo/odoo11/odoo/models.py", line 2601, in read
values[name] = field.convert_to_read(record[name], record, use_name_get)
File "/opt/odoo/odoo11/odoo/models.py", line 4758, in __getitem__
return self._fields[key].__get__(self, type(self))
File "/opt/odoo/odoo11/odoo/fields.py", line 941, in __get__
self.determine_value(record)
File "/opt/odoo/odoo11/odoo/fields.py", line 1052, in determine_value
self.compute_value(recs)
File "/opt/odoo/odoo11/odoo/fields.py", line 1008, in compute_value
self._compute_value(records)
File "/opt/odoo/odoo11/odoo/fields.py", line 999, in _compute_value
getattr(records, self.compute)()
File "/opt/odoo/odoo11/odoo/addons/base/ir/ir_actions.py", line 167, in _compute_search_view
fvg = self.env[act.res_model].fields_view_get(act.search_view_id.id, 'search')
File "/opt/odoo/odoo11/odoo/api.py", line 760, in __getitem__
return self.registry[model_name]._browse((), self)
File "/opt/odoo/odoo11/odoo/modules/registry.py", line 179, in __getitem__
return self.models[model_name]
KeyError: 'base.module.record'
Avatar
Discard
Author Best Answer

Ok, I solved it!


I'll explain the steps I took in case somebody has the same problem:


I looked for the last line in the log which reads "KeyError: 'base.module.record' " and searched for it in the database section of qweb, finding that it linked to a module I installed months ago, which didn't work well and forgot about it... So I uninstalled it.


Then it threw another error... So I proceeded to do the same until I eliminated all errors.


A simple solution... If you know what to do 👍

Avatar
Discard

MOst of the devs will face this problem. To avoid it we should always add new fields using the modules. Also "depends" attribute in the manifest would trigger a warning:)

Author

Is there any IDE which i can use to work with odoo?

Thanks again :)