mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[FIX] account_statement_import_txt_xlsx: only consider parsing when a mapping sheet is specified
This commit is contained in:
committed by
Miquel Raïch
parent
dc7cb80a27
commit
22287c258d
@@ -26,6 +26,7 @@ class AccountStatementImport(models.TransientModel):
|
||||
|
||||
def _parse_file(self, data_file):
|
||||
self.ensure_one()
|
||||
if self.sheet_mapping_id:
|
||||
try:
|
||||
Parser = self.env["account.statement.import.sheet.parser"]
|
||||
return Parser.parse(
|
||||
|
||||
Reference in New Issue
Block a user