Skip to Content
Menu
This question has been flagged
1 Reply
1884 Views

Can you help me out! Have an Issue adding new user to Odoo 15


this is the message when new users login


Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 85, in lookup
    r = d[key]
  File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 71, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/tools/lru.py", line 34, in __getitem__
    a = self.d[obj]
KeyError: ('ir.model.data', , 'base.user_admin')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 811, in dispatch
    r = self._call_function(**self.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 360, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 349, in checked_call
    result = self.endpoint(*a, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 917, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 536, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/website/controllers/main.py", line 139, in web_login
    return super().web_login(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 536, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/auth_signup/controllers/main.py", line 21, in web_login
    response = super(AuthSignupHome, self).web_login(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 536, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 877, in web_login
    uid = request.session.authenticate(request.session.db, request.params['login'], request.params['password'])
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1007, in authenticate
    uid = odoo.registry(db)['res.users'].authenticate(db, login, password, env)
  File "/usr/lib/python3/dist-packages/odoo/addons/website/models/res_users.py", line 76, in authenticate
    uid = super(ResUsers, cls).authenticate(db, login, password, user_agent_env)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/res_users.py", line 724, in authenticate
    uid = cls._login(db, login, password, user_agent_env=user_agent_env)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/res_users.py", line 703, in _login
    user.tz = tz
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1217, in __set__
    records.write({self.name: write_value})
  File "/usr/lib/python3/dist-packages/odoo/addons/hr/models/res_users.py", line 206, in write
    result = super(User, self).write(vals)
  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/res_users.py", line 75, in write
    write_res = super(Users, self).write(vals)
  File "/usr/lib/python3/dist-packages/odoo/addons/resource/models/res_users.py", line 21, in write
    and self.env.user == self.env.ref('base.user_admin') and self == self.env.user):
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 578, in ref
    res_model, res_id = self['ir.model.data']._xmlid_to_res_model_res_id(
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 1935, in _xmlid_to_res_model_res_id
    return self._xmlid_lookup(xmlid)[1:3]
  File "", line 2, in _xmlid_lookup
  File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 1928, in _xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 811, in dispatch
    r = self._call_function(**self.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 360, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 349, in checked_call
    result = self.endpoint(*a, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 917, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 536, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/website/controllers/main.py", line 139, in web_login
    return super().web_login(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 536, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/auth_signup/controllers/main.py", line 21, in web_login
    response = super(AuthSignupHome, self).web_login(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 536, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 877, in web_login
    uid = request.session.authenticate(request.session.db, request.params['login'], request.params['password'])
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 1007, in authenticate
    uid = odoo.registry(db)['res.users'].authenticate(db, login, password, env)
  File "/usr/lib/python3/dist-packages/odoo/addons/website/models/res_users.py", line 76, in authenticate
    uid = super(ResUsers, cls).authenticate(db, login, password, user_agent_env)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/res_users.py", line 724, in authenticate
    uid = cls._login(db, login, password, user_agent_env=user_agent_env)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/res_users.py", line 703, in _login
    user.tz = tz
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1217, in __set__
    records.write({self.name: write_value})
  File "/usr/lib/python3/dist-packages/odoo/addons/hr/models/res_users.py", line 206, in write
    result = super(User, self).write(vals)
  File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/res_users.py", line 75, in write
    write_res = super(Users, self).write(vals)
  File "/usr/lib/python3/dist-packages/odoo/addons/resource/models/res_users.py", line 21, in write
    and self.env.user == self.env.ref('base.user_admin') and self == self.env.user):
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 578, in ref
    res_model, res_id = self['ir.model.data']._xmlid_to_res_model_res_id(
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 1935, in _xmlid_to_res_model_res_id
    return self._xmlid_lookup(xmlid)[1:3]
  File "", line 2, in _xmlid_lookup
  File "/usr/lib/python3/dist-packages/odoo/tools/cache.py", line 90, in lookup
    value = d[key] = self.method(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_model.py", line 1928, in _xmlid_lookup
    raise ValueError('External ID not found in the system: %s' % xmlid)
ValueError: External ID not found in the system: base.user_admin


Avatar
Discard
Best Answer

Hi, 

did you some how deleted admin user from the db ? try upgrading the base module and see whether it makes any difference

Thank you

Avatar
Discard
Related Posts Replies Views Activity
1
Dec 24
165
0
Nov 24
63
2
Jul 24
704
0
Apr 24
556
3
Mar 24
580