Browse Source

special case for Ntrys without TxDtls

pull/102/head
Louis Bettens 8 years ago
parent
commit
7bc64b9bd0
  1. 3
      account_bank_statement_import_camt/models/parser.py

3
account_bank_statement_import_camt/models/parser.py

@ -141,6 +141,9 @@ class CamtParser(models.AbstractModel):
details_nodes = node.xpath(
'./ns:NtryDtls/ns:TxDtls', namespaces={'ns': ns})
if len(details_nodes) == 0:
yield transaction
return
transaction_base = transaction
for node in details_nodes:
transaction = transaction_base.copy()

Loading…
Cancel
Save