Error when configure the company


I have the following error when i try to configure the company on a new base, on Tryton 5.6 (in a container docker)

 Traceback (most recent call last):
  File "/usr/lib/python38/site-packages/trytond/wsgipy", line 109, in dispatch_request
    return endpoint(request, **requestview_args)
  File "/usr/lib/python38/site-packages/trytond/protocols/dispatcherpy", line 47, in rpc
    return methodsget(requestrpc_method, _dispatch)(
  File "/usr/lib/python38/site-packages/wrapt/wrapperspy", line 566, in __call__
    return self_self_wrapper(self__wrapped__, self_self_instance,
  File "/usr/lib/python38/site-packages/trytond/wsgipy", line 77, in auth_required
    return wrapped(*args, **kwargs)
  File "/usr/lib/python38/site-packages/trytond/protocols/wrapperspy", line 131, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/usr/lib/python38/site-packages/trytond/protocols/dispatcherpy", line 143, in _dispatch
    obj, method = get_object_method(request, pool)
  File "/usr/lib/python38/site-packages/trytond/protocols/dispatcherpy", line 130, in get_object_method
    return poolget(name, type=type), method
  File "/usr/lib/python38/site-packages/trytond/poolpy", line 179, in get
    return self_pool[selfdatabase_name][type][name]
KeyError: 'companycompanyconfig'

Has anyone ever encountered this ?


The error is because the model is not present on the database pool.

This happens when the module has been activated on a diferent server and the pool has not been reloaded. Restarting the server container should fix the issue.

Ok thanks for the explanation.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.