Skip to Content
Menu
This question has been flagged
2 Replies
570 Views

Hello community, i've encountered with a problem when i open a contact in odoo, i get this error:


RPC_ERROR

Odoo Server Error

Traceback (most recent call last):

  File "/opt/soltein/odoo_15.0.20230312/odoo/addons/base/models/ir_http.py", line 237, in _dispatch

    result = request.dispatch()

  File "/opt/soltein/odoo_15.0.20230312/odoo/http.py", line 687, in dispatch

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

  File "/opt/soltein/odoo_15.0.20230312/odoo/http.py", line 359, in _call_function

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

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

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

  File "/opt/soltein/odoo_15.0.20230312/odoo/http.py", line 348, in checked_call

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

  File "/opt/soltein/odoo_15.0.20230312/odoo/http.py", line 910, in __call__

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

  File "/opt/soltein/odoo_15.0.20230312/odoo/http.py", line 535, in response_wrap

    response = f(*args, **kw)

  File "/opt/soltein/odoo_15.0.20230312/odoo/addons/web/controllers/main.py", line 1326, in call_kw

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

  File "/opt/soltein/odoo_15.0.20230312/odoo/addons/web/controllers/main.py", line 1318, in _call_kw

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

  File "/opt/soltein/odoo_15.0.20230312/odoo/api.py", line 464, in call_kw

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

  File "/opt/soltein/odoo_15.0.20230312/odoo/api.py", line 451, in _call_kw_multi

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

  File "/opt/soltein/odoo_15.0.20230312/odoo/models.py", line 3216, 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 "/opt/soltein/odoo_15.0.20230312/odoo/http.py", line 643, in _handle_exception

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

  File "/opt/soltein/odoo_15.0.20230312/odoo/http.py", line 301, in _handle_exception

    raise exception.with_traceback(None) from new_cause

ValueError: Invalid field 'show_credit_limit' on model 'res.partner'


I've already update the contacts and base module.

also adding the field in the res.partner the server will crash


Avatar
Discard
Best Answer

Hi,

The show_credit_limit field is present in the account module. It inherits res.partner form and is set invisible.
Also, there's a group in the same form which has a conditional display based on the show_credit_limit field.
So, If the field is not in view, there is a chance for this error to occur because conditional view only works if the field is in view.
If you are using any custom modules, please ensure that the show_credit_limit field is not removed from view.


Hope it helps

Avatar
Discard
Best Answer

Hi david, if show_credit_limit is a many2something field that is pointing to other model maybe you forgot to add on the manifest depends the other module

Avatar
Discard
Related Posts Replies Views Activity
1
Jun 23
2140
2
Jan 23
840
1
Nov 22
1109
1
Jun 22
3466
0
Mar 15
3345