Browse Source

Merge PR #305 into 12.0

Signed-off-by alexey-pelykh
12.0
OCA-git-bot 5 years ago
parent
commit
805ddede94
  1. 5
      account_bank_statement_import_txt_xlsx/models/account_bank_statement_import_sheet_parser.py

5
account_bank_statement_import_txt_xlsx/models/account_bank_statement_import_sheet_parser.py

@ -220,7 +220,10 @@ class AccountBankStatementImportSheetParser(models.TransientModel):
elif original_currency == currency: elif original_currency == currency:
original_amount = amount original_amount = amount
original_amount = self._parse_decimal(original_amount, mapping)
if original_amount is not None:
original_amount = self._parse_decimal(original_amount, mapping)
else:
original_amount = 0.0
line = { line = {
'timestamp': timestamp, 'timestamp': timestamp,

Loading…
Cancel
Save