This question has been flagged
1 Reply
1575 Views

Hello,


I have been using Odoo 13 community on my personal server for quite some time now and for some reason now whenever I want to open users form (Settings --> Manage Users), I keep getting the following error.


Error:

Odoo Server Error


Traceback (most recent call last):

  File "/opt/odoo/odoo/http.py", line 624, in _handle_exception

    return super(JsonRequest, self)._handle_exception(exception)

  File "/opt/odoo/odoo/http.py", line 310, in _handle_exception

    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

  File "/opt/odoo/odoo/tools/pycompat.py", line 14, in reraise

    raise value

  File "/opt/odoo/odoo/http.py", line 669, in dispatch

    result = self._call_function(**self.params)

  File "/opt/odoo/odoo/http.py", line 350, in _call_function

    return checked_call(self.db, *args, **kwargs)

  File "/opt/odoo/odoo/service/model.py", line 94, in wrapper

    return f(dbname, *args, **kwargs)

  File "/opt/odoo/odoo/http.py", line 339, in checked_call

    result = self.endpoint(*a, **kw)

  File "/opt/odoo/odoo/http.py", line 915, in __call__

    return self.method(*args, **kw)

  File "/opt/odoo/odoo/http.py", line 515, in response_wrap

    response = f(*args, **kw)

  File "/opt/odoo/addons/web/controllers/main.py", line 1327, in call_kw

    return self._call_kw(model, method, args, kwargs)

  File "/opt/odoo/addons/web/controllers/main.py", line 1319, in _call_kw

    return call_kw(request.env[model], method, args, kwargs)

  File "/opt/odoo/odoo/api.py", line 383, in call_kw

    result = _call_kw_model(method, model, args, kwargs)

  File "/opt/odoo/odoo/api.py", line 356, in _call_kw_model

    result = method(recs, *args, **kwargs)

  File "/opt/odoo/odoo/models.py", line 1466, in load_views

    for [v_id, v_type] in views

  File "/opt/odoo/odoo/models.py", line 1466, in <dictcomp>

    for [v_id, v_type] in views

  File "/opt/odoo/addons/hr/models/res_users.py", line 151, in fields_view_get

    return super(User, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)

  File "/opt/odoo/addons/web/models/models.py", line 206, in fields_view_get

    r = super().fields_view_get(view_id, view_type, toolbar, submenu)

  File "/opt/odoo/odoo/models.py", line 1553, in fields_view_get

    xarch, xfields = View.postprocess_and_fields(self._name, etree.fromstring(result['arch']), view_id)

  File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 994, in postprocess_and_fields

    self.raise_view_error(message, view_id)

  File "/opt/odoo/odoo/addons/base/models/ir_ui_view.py", line 614, in raise_view_error

    raise ValueError(message)

ValueError: Field `last_name` does not exist


Error context:

View `res.users.form`

[view_id: 156, xml_id: base.view_users_form, model: res.users, parent_id: n/a]

Avatar
Discard
Best Answer

Hi,

Cannot see such a field in odoo13, might be error is coming from any of the custom modules that you have used. Please check and confirm.


Thanks

Avatar
Discard
Author

Thank you so much, you are right.

This database was a copy and had a custom module installed and when I moved it, I did not add the module. Once it was added, it functioned correctly!

Author

One more thing, currently it is taking way too long on 1 of my databases (others who had the same issue are working fine) to load the page.

I have uninstalled the custom module (incase it was making the issue) but it wasn't. It takes around 3~5 minutes to open the page although my database is very light.

If you have a new issue, please post a new question and provide the necessary information.