mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[FIX] account_bank_statement_import_paypal: Don't set currency if it's the same
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user