mollie / mollie-odoo

Mollie Payments plugin for Odoo - an open source CRM and ERP
29 stars 50 forks source link

fees returns a dict when a float is required #128

Closed baptisteghesquiere closed 1 year ago

baptisteghesquiere commented 2 years ago

The function mollie_compute_fees returns a dict when if request and request.params.get('paymentmethod'): is false. ( line 52 in payment_acquirer.py )

Down the line odoo uses the return of this function to calculate and it expects a float. When the dict is returned, the website breaks.

Please default to a float when the if statement fails.

odoo-mvds commented 1 year ago

Hello,

Can you provide the steps/video how this error is generated? And is it for v14 version ?