From ba16fdc8c1a73a1ecfb4a8b05754ee7f4dc68a3c Mon Sep 17 00:00:00 2001 From: Demesmaeker Date: Mon, 16 Jan 2023 12:23:38 +0000 Subject: [PATCH] [FIX] payment: use a defined currency Following f3a3e341503926703b2140f6df72f767422f5605, 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) --- addons/payment/tests/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/payment/tests/common.py b/addons/payment/tests/common.py index 6e92dc5ffc6..6f42fcecf19 100644 --- a/addons/payment/tests/common.py +++ b/addons/payment/tests/common.py @@ -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