Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
7466 Vistas

I need help. We are working with Odoo 13 Community Version.

While confirming a sales order the following error appears:

Error:
Odoo Server Error

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 624, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 310, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 14, in reraise
    raise value
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 669, in dispatch
    result = self._call_function(**self.params)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 350, 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 339, in checked_call
    result = self.endpoint(*a, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 915, in __call__
    return self.method(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 515, in response_wrap
    response = f(*args, **kw)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1343, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1331, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 383, in call_kw
    result = _call_kw_model(method, model, args, kwargs)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 356, in _call_kw_model
    result = method(recs, *args, **kwargs)


TypeError: action_confirm() takes 1 positional argument but 2 were given

can someone help me to solve this problem?

Thanks in advance,

Andreas

Avatar
Descartar

are you using any custom modules ?

Autor

Thank you for the reply.

The error occurs after having send a sale quotation by mail. The "Confirm Sale" button converts in to the "confirm" button, but the above metioned error appears:

Without having sent the quotation by mail, I can confirm the quotation without any issues.

After having sent the quotation by mail, the following "confirm" button appears and the error message appears while trying to execute confirm.

We are using custom modules as:

- https://apps.odoo.com/apps/modules/14.0/pragtech_qc_rental_dashboard/

- helpdesk modules.

I really aappreciate your help :-)

Andreas

Mejor respuesta

please update your question with 'action_confirm' function, i had same error log before, in my case Im using '@api.model' on the function that caused the same error

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
4
may 24
7524
2
may 16
4308
1
mar 15
5055
1
mar 15
6015
1
ene 25
2894