Ir al contenido
Menú
Se marcó esta pregunta
1056 Vistas

Hi All,

I created a new website in the Odoo 18 community and installed Demo Payment Provider.
I also added a donation button on the home page.

I'm getting the below error while going to the checkout page by the donation button.



RPC_ERROR


Odoo Server Error


Occured on localhost:8069 on 2024-11-25 07:24:28 GMT


Traceback (most recent call last):

  File "D:\odoo-18.0.post20241124\odoo\http.py", line 1954, in _transactioning

    return service_model.retrying(func, env=self.env)

  File "D:\odoo-18.0.post20241124\odoo\service\model.py", line 137, in retrying

    result = func()

  File "D:\odoo-18.0.post20241124\odoo\http.py", line 1921, in _serve_ir_http

    response = self.dispatcher.dispatch(rule.endpoint, args)

  File "D:\odoo-18.0.post20241124\odoo\http.py", line 2168, in dispatch

    result = self.request.registry['ir.http']._dispatch(endpoint)

  File "D:\odoo-18.0.post20241124\odoo\addons\base\models\ir_http.py", line 329, in _dispatch

    result = endpoint(**request.params)

  File "D:\odoo-18.0.post20241124\odoo\http.py", line 727, in route_wrapper

    result = endpoint(self, *args, **params_ok)

TypeError: PaymentPortal.donation_transaction() missing 4 required positional arguments: 'amount', 'currency_id', 'partner_id', and 'access_token'


The above server error caused the following client error:

RPC_ERROR: Odoo Server Error

    RPC_ERROR

        at makeErrorFromResponse (http://localhost:8069/web/assets/1/0b4cdbc/web.assets_frontend_lazy.min.js:4454:163)

        at XMLHttpRequest.<anonymous> (http://localhost:8069/web/assets/1/0b4cdbc/web.assets_frontend_lazy.min.js:4459:13)

what configuration did I miss here?


Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
abr 25
2162
0
dic 24
686
1
oct 24
1666
1
sept 24
108
0
oct 21
1642