mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
special case for Ntrys without TxDtls
This commit is contained in:
@@ -141,6 +141,9 @@ class CamtParser(models.AbstractModel):
|
|||||||
|
|
||||||
details_nodes = node.xpath(
|
details_nodes = node.xpath(
|
||||||
'./ns:NtryDtls/ns:TxDtls', namespaces={'ns': ns})
|
'./ns:NtryDtls/ns:TxDtls', namespaces={'ns': ns})
|
||||||
|
if len(details_nodes) == 0:
|
||||||
|
yield transaction
|
||||||
|
return
|
||||||
transaction_base = transaction
|
transaction_base = transaction
|
||||||
for node in details_nodes:
|
for node in details_nodes:
|
||||||
transaction = transaction_base.copy()
|
transaction = transaction_base.copy()
|
||||||
|
|||||||
Reference in New Issue
Block a user