From 705e1fb9024096c812231f68427e36b2f9a12a68 Mon Sep 17 00:00:00 2001 From: "Valentin Vallaeys (vava)" Date: Thu, 22 Dec 2022 17:40:32 +0000 Subject: [PATCH] [FIX] payment: test now uses currency of the provider closes odoo/odoo#108561 Signed-off-by: Victor Feyens (vfe) --- addons/payment/tests/test_payment_provider.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/payment/tests/test_payment_provider.py b/addons/payment/tests/test_payment_provider.py index ccce69d3dcd..ecca2f7cb6c 100644 --- a/addons/payment/tests/test_payment_provider.py +++ b/addons/payment/tests/test_payment_provider.py @@ -95,7 +95,9 @@ class TestPaymentProvider(PaymentCommon): }) transaction_fees = self.currency.round( self.provider._compute_fees( - self.amount, self.currency_usd, self.provider.company_id.country_id + self.amount, + self.provider.company_id.currency_id, + self.provider.company_id.country_id, ) ) self.assertEqual(transaction_fees, 4.91)