Error:
Odoo Server Error
Traceback (most recent call last):
File "/home/hasan/documents/odoo/odoo-14.0/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/home/hasan/documents/odoo/odoo-14.0/odoo/http.py", line 685, in dispatch
result = self._call_function(**self.params)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/http.py", line 361, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/http.py", line 349, in checked_call
result = self.endpoint(*a, **kw)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/http.py", line 908, in __call__
return self.method(*args, **kw)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/http.py", line 533, in response_wrap
response = f(*args, **kw)
File "/home/hasan/documents/odoo/odoo-14.0/yuniko/basic/web/controllers/main.py", line 1393, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/home/hasan/documents/odoo/odoo-14.0/yuniko/basic/web/controllers/main.py", line 1381, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/api.py", line 399, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/api.py", line 386, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/hasan/documents/odoo/odoo-14.0/yuniko/core/equip3_accounting_accessright_setting/models/ir_module_module.py", line 12, in button_immediate_install
res = super(IrModuleModule, self).button_immediate_install()
File "/home/hasan/documents/odoo/odoo-14.0/yuniko/core/apps_installation_activity_log/models/ir_module_module.py", line 49, in button_immediate_install
return super(IrModule, self).button_immediate_install()
File "<decorator-gen-72>", line 2, in button_immediate_install
File "/home/hasan/documents/odoo/odoo-14.0/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
return method(self, *args, **kwargs)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/addons/base/models/ir_module.py", line 478, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/addons/base/models/ir_module.py", line 596, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/modules/registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/modules/loading.py", line 459, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/home/hasan/documents/odoo/odoo-14.0/odoo/modules/loading.py", line 347, in load_marked_modules
loaded, processed = load_module_graph(
File "/home/hasan/documents/odoo/odoo-14.0/odoo/modules/loading.py", line 199, in load_module_graph
registry.init_models(cr, model_names, {'module': package.name}, new_install)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/modules/registry.py", line 422, in init_models
env['base'].flush()
File "/home/hasan/documents/odoo/odoo-14.0/odoo/models.py", line 5502, in flush
self.recompute()
File "/home/hasan/documents/odoo/odoo-14.0/odoo/models.py", line 5961, in recompute
process(field)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/models.py", line 5945, in process
field.recompute(recs)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/fields.py", line 1176, in recompute
self.compute_value(recs)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/fields.py", line 1198, in compute_value
records._compute_field_value(self)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/models.py", line 4109, in _compute_field_value
odoo.fields.determine(field.compute, self)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/fields.py", line 81, in determine
if needle.__name__.find('__'):
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/hasan/documents/odoo/odoo-14.0/odoo/http.py", line 641, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/hasan/documents/odoo/odoo-14.0/odoo/http.py", line 317, in _handle_exception
raise exception.with_traceback(None) from new_cause
AttributeError: 'mrp.consumption' object has no attribute '__name__'