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

I get this error when I click manage companies->company name or update company info. can someone please help me fix it. I am using odoo on cloud.

Error:

Odoo Server Error


Traceback (most recent call last):

  File "/home/odoo/src/odoo/14.0/odoo/addons/base/models/ir_http.py", line 237, in _dispatch

    result = request.dispatch()

  File "/home/odoo/src/odoo/14.0/odoo/http.py", line 683, in dispatch

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

  File "/home/odoo/src/odoo/14.0/odoo/http.py", line 359, in _call_function

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

  File "/home/odoo/src/odoo/14.0/odoo/service/model.py", line 94, in wrapper

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

  File "/home/odoo/src/odoo/14.0/odoo/http.py", line 347, in checked_call

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

  File "/home/odoo/src/odoo/14.0/odoo/http.py", line 912, in __call__

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

  File "/home/odoo/src/odoo/14.0/odoo/http.py", line 531, in response_wrap

    response = f(*args, **kw)

  File "/home/odoo/src/odoo/14.0/addons/web/controllers/main.py", line 1377, in call_kw

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

  File "/home/odoo/src/odoo/14.0/addons/web/controllers/main.py", line 1369, in _call_kw

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

  File "/home/odoo/src/odoo/14.0/odoo/api.py", line 396, in call_kw

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

  File "/home/odoo/src/odoo/14.0/odoo/api.py", line 383, in _call_kw_multi

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

  File "/home/odoo/src/odoo/14.0/odoo/models.py", line 3012, in read

    raise ValueError("Invalid field %r on model %r" % (name, self._name))

Exception


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


Traceback (most recent call last):

  File "/home/odoo/src/odoo/14.0/odoo/http.py", line 639, in _handle_exception

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

  File "/home/odoo/src/odoo/14.0/odoo/http.py", line 315, in _handle_exception

    raise exception.with_traceback(None) from new_cause

ValueError: Invalid field 'temp_selection' on model 'res.company'

Avatar
Discard
Author

Hello?

Best Answer

The error message you're encountering suggests that there is an issue with a field named 'temp_selection' on the 'res.company' model in your Odoo installation. It seems like Odoo is trying to access or display this field, but it cannot find it in the model definition. If you have any custom modules or addons installed in your Odoo installation, make sure that they are compatible with the version of Odoo you are using. This error could be caused by a custom module that defines a field called 'temp_selection' but has not been properly updated for your Odoo version. Go to Odoo's developer mode and navigate to 'Technical' > 'Database Structure' > 'Models'. Look for the 'res.company' model and check if there is a field called 'temp_selection' defined. If it's there, you can try to remove it or investigate further if it's a necessary field. If you have recently made any changes to the database structure or installed/uninstalled modules, consider whether these changes might have introduced this issue. Roll back any recent changes that could be related.

Avatar
Discard