跳至内容
菜单
此问题已终结
1063 查看

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?


形象
丢弃
相关帖文 回复 查看 活动
1
4月 25
2168
0
12月 24
689
1
10月 24
1671
1
9月 24
108
0
10月 21
1644