Skip to Content
Menu
This question has been flagged
1033 Views
Odoo Server Error
Traceback (most recent call last):
  File "C:\Program Files\server\odoo\addons\base\models\ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "C:\Program Files\server\odoo\http.py", line 685, in dispatch
    result = self._call_function(**self.params)
  File "C:\Program Files\server\odoo\http.py", line 361, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "C:\Program Files\server\odoo\service\model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "C:\Program Files\server\odoo\http.py", line 349, in checked_call
    result = self.endpoint(*a, **kw)
  File "C:\Program Files\server\odoo\http.py", line 914, in __call__
    return self.method(*args, **kw)
  File "C:\Program Files\server\odoo\http.py", line 533, in response_wrap
    response = f(*args, **kw)
  File "C:\Program Files\server\odoo\addons\web\controllers\main.py", line 1398, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "C:\Program Files\server\odoo\addons\web\controllers\main.py", line 1386, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\Program Files\server\odoo\api.py", line 399, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "C:\Program Files\server\odoo\api.py", line 386, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "", line 2, in button_immediate_install
  File "C:\Program Files\server\odoo\addons\base\models\ir_module.py", line 74, in check_and_log
    return method(self, *args, **kwargs)
  File "C:\Program Files\server\odoo\addons\base\models\ir_module.py", line 475, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "C:\Program Files\server\odoo\addons\base\models\ir_module.py", line 593, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "C:\Program Files\server\odoo\modules\registry.py", line 89, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "C:\Program Files\server\odoo\modules\loading.py", line 461, in load_modules
    loaded_modules, update_module, models_to_check)
  File "C:\Program Files\server\odoo\modules\loading.py", line 349, in load_marked_modules
    perform_checks=perform_checks, models_to_check=models_to_check
  File "C:\Program Files\server\odoo\modules\loading.py", line 199, in load_module_graph
    registry.init_models(cr, model_names, {'module': package.name}, new_install)
  File "C:\Program Files\server\odoo\modules\registry.py", line 406, in init_models
    model.init()
  File "C:\Program Files\server\odoo\tools\misc.py", line 847, in deco
    return func(*args, **kwargs)
  File "C:\Program Files\server\odoo\addons\base\models\ir_config_parameter.py", line 53, in init
    params = self.sudo().search([('key', '=', key)])
  File "C:\Program Files\server\odoo\models.py", line 5057, in sudo
    return self.with_env(self.env(su=flag))
Exception

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

Traceback (most recent call last):
  File "C:\Program Files\server\odoo\http.py", line 641, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "C:\Program Files\server\odoo\http.py", line 317, in _handle_exception
    raise exception.with_traceback(None) from new_cause
TypeError: __call__() got an unexpected keyword argument 'su'


Avatar
Discard

The question doesn't have enough info to provide the help, request you to trace which part of the code is raising the exception.