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: parse only if mapping if specified
This commit is contained in:
@@ -21,6 +21,7 @@ class AccountBankStatementImport(models.TransientModel):
|
|||||||
|
|
||||||
def _parse_file(self, data_file):
|
def _parse_file(self, data_file):
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
|
if self.paypal_mapping_id:
|
||||||
try:
|
try:
|
||||||
Parser = self.env["account.bank.statement.import.paypal.parser"]
|
Parser = self.env["account.bank.statement.import.paypal.parser"]
|
||||||
return Parser.parse(
|
return Parser.parse(
|
||||||
|
|||||||
Reference in New Issue
Block a user