İçereği Atla
Menü
Bu soru işaretlendi
1059 Görünümler

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Nis 25
2166
0
Ara 24
687
1
Eki 24
1667
1
Eyl 24
108
0
Eki 21
1642