Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
1393 Vizualizări

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


Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iun. 23
4149
2
ian. 23
1962
1
nov. 22
2209
1
iun. 22
6012
0
mar. 15
4306