[FIX] payment: test now uses currency of the provider
closes odoo/odoo#108561 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user