Browse Source

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

pull/210/head
Pedro M. Baeza 5 years ago
parent
commit
0ed83f20ce
  1. 5
      account_bank_statement_import_paypal/tests/test_paypal_statement_import.py

5
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({ cls.map = cls.env['account.bank.statement.import.paypal.map'].create({
'name': 'Paypal Map Test', 'name': 'Paypal Map Test',
}) })
usd = cls.env.ref('base.USD')
cls.journal = cls.env['account.journal'].create({ cls.journal = cls.env['account.journal'].create({
'name': 'Paypal Bank', 'name': 'Paypal Bank',
'type': 'bank', 'type': 'bank',
'code': 'PYPAL', '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): def _do_import(self, file_name):

Loading…
Cancel
Save