diff --git a/account_bank_statement_import_paypal/tests/test_paypal_statement_import.py b/account_bank_statement_import_paypal/tests/test_paypal_statement_import.py index e9a7b31..1cc01e4 100644 --- a/account_bank_statement_import_paypal/tests/test_paypal_statement_import.py +++ b/account_bank_statement_import_paypal/tests/test_paypal_statement_import.py @@ -14,11 +14,14 @@ class TestPaypalFile(common.SavepointCase): cls.map = cls.env['account.bank.statement.import.paypal.map'].create({ 'name': 'Paypal Map Test', }) + usd = cls.env.ref('base.USD') cls.journal = cls.env['account.journal'].create({ 'name': 'Paypal Bank', 'type': 'bank', 'code': 'PYPAL', - 'currency_id': cls.env.ref('base.USD').id, + 'currency_id': ( + usd.id if cls.env.user.company_id.currency_id != usd else False + ), }) def _do_import(self, file_name):