Browse Source

fix error parsing field 'original_amount' when it is not being provided in

the mapping.
12.0
Jordi Ballester Alomar 5 years ago
parent
commit
bd19f3b359
  1. 3
      account_bank_statement_import_txt_xlsx/models/account_bank_statement_import_sheet_parser.py

3
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:
original_amount = amount
if original_amount is not None:
original_amount = self._parse_decimal(original_amount, mapping)
else:
original_amount = 0.0
line = {
'timestamp': timestamp,

Loading…
Cancel
Save