Browse Source
fix exception when using multiple files type
fix exception when using multiple files type (ofx for example)
12.0
Vincent Barrier
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
account_bank_statement_import_paypal/wizards/account_bank_statement_import_paypal.py
|
|
@ -66,7 +66,11 @@ class AccountBankStatementImport(models.TransientModel): |
|
|
|
|
|
|
|
@api.model |
|
|
|
def _check_paypal(self, data_file): |
|
|
|
data_file = self._get_paypal_str_data(data_file) |
|
|
|
try: |
|
|
|
data_file = self._get_paypal_str_data(data_file) |
|
|
|
except Exception as e: |
|
|
|
_logger.debug(e) |
|
|
|
return False |
|
|
|
if not self.paypal_map_id: |
|
|
|
return False |
|
|
|
headers = self.mapped('paypal_map_id.map_line_ids.name') |
|
|
|