[FIX] payment: use a defined currency

Following f3a3e34150, the l10n tests were failing due to the main
currency changing to a currency not available for the test provider.

closes odoo/odoo#109916

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Demesmaeker
2023-01-16 15:43:09 +01:00
parent 20b8635737
commit ba16fdc8c1
+3 -1
View File
@@ -79,7 +79,9 @@ class PaymentCommon(BaseCommon):
'is_published': True,
'allow_tokenization': True,
'redirect_form_view_id': redirect_form.id,
'available_currency_ids': [Command.set((cls.currency_euro + cls.currency_usd).ids)],
'available_currency_ids': [Command.set(
(cls.currency_euro + cls.currency_usd + cls.env.company.currency_id).ids
)],
})
cls.provider = cls.dummy_provider