When performing different actions in the tryton modules, the following novelty is generated

Traceback (most recent call last):
  File "/usr/local/lib/python37/dist-packages/trytond/wsgipy", line 117, in dispatch_request
    return endpoint(request, **requestview_args)
  File "/usr/local/lib/python37/dist-packages/trytond/protocols/dispatcherpy", line 47, in rpc
    request, database_name, *requestrpc_params)
  File "/usr/local/lib/python37/dist-packages/trytond/protocols/wrapperspy", line 159, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/usr/local/lib/python37/dist-packages/trytond/protocols/dispatcherpy", line 180, in _dispatch
    result = rpcresult(meth(*c_args, **c_kwargs))
  File "/usr/local/lib/python37/dist-packages/trytond/wizard/wizardpy", line 274, in create
    return (Sessioncreate([{}])[0]id, clsstart_state, clsend_state)
  File "/usr/local/lib/python37/dist-packages/trytond/res/userpy", line 519, in get_preferences
    preferences = cls_get_preferences(user, context_only=context_only)
  File "/usr/local/lib/python37/dist-packages/trytond/modules/stock/respy", line 23, in _get_preferences
    preferences = super()_get_preferences(user, context_only=context_only)
  File "/usr/local/lib/python37/dist-packages/trytond/modules/company_work_time/respy", line 12, in _get_preferences
    context_only=context_only)
  File "/usr/local/lib/python37/dist-packages/trytond/modules/company/respy", line 140, in _get_preferences
    context_only=context_only)
  File "/usr/local/lib/python37/dist-packages/trytond/res/userpy", line 481, in _get_preferences
    getattr(user, field)rec_name
  File "/usr/local/lib/python37/dist-packages/trytond/model/modelstoragepy", line 1595, in _getattr_
    self_transactiondatabaseIN_MAX)
AttributeError: 'NoneType' object has no attribute 'IN_MAX'

It seems your request is not for a database.
But also it seems your version is old, which one is it?

Hi, the current version we use is 6.0.

It seems that at least trytond is no up to date. Try first to update to last version of the series.

Also could you provide the log of the failing request on the server ?