mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
fix error parsing field 'original_amount' when it is not being provided in
the mapping.
This commit is contained in:
committed by
Sergio Zanchetta
parent
110c496b26
commit
58bc676a7e
@@ -266,7 +266,10 @@ class AccountBankStatementImportSheetParser(models.TransientModel):
|
||||
elif original_currency == currency:
|
||||
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 = {
|
||||
"timestamp": timestamp,
|
||||
|
||||
Reference in New Issue
Block a user