mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] Take EndToEndId into account when no structured reference
This commit is contained in:
@@ -239,6 +239,8 @@ CAMT Format parser
|
||||
vals['message'] = ' '.join([x.text for x in unstructured])
|
||||
structured = self.find(
|
||||
TxDtls, './ns:RmtInf/ns:Strd/ns:CdtrRefInf/ns:Ref')
|
||||
if structured is None or not structured.text:
|
||||
structured = self.find(TxDtls, './ns:Refs/ns:EndToEndId')
|
||||
if structured is not None:
|
||||
vals['reference'] = structured.text
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user