[FIX] account_bank_statement_import_paypal: Don't set currency if it's the same

This commit is contained in:
Pedro M. Baeza
2019-05-06 21:12:50 +02:00
parent 3f3fe3845a
commit 0ed83f20ce

View File

@@ -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):