details:   https://code.tryton.org/tryton/commit/fe09ebefd331
branch:    default
user:      Nicolas Évrard <[email protected]>
date:      Mon Nov 09 19:04:18 2026 +0100
description:
        Use only EndToEndId to find related payments

        Closes #15229
diffstat:

 modules/account_payment_sepa/sepa_handler.py |  9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diffs (22 lines):

diff -r 89e8f70a4632 -r fe09ebefd331 
modules/account_payment_sepa/sepa_handler.py
--- a/modules/account_payment_sepa/sepa_handler.py      Mon Nov 09 18:44:15 
2026 +0100
+++ b/modules/account_payment_sepa/sepa_handler.py      Mon Nov 09 19:04:18 
2026 +0100
@@ -72,17 +72,10 @@
 
     def get_payments(self, transaction):
         tag = etree.QName(transaction)
-        instr_id = transaction.find(
-            './/{%s}InstrId' % tag.namespace)
         end_to_end_id = transaction.find(
             './/{%s}EndToEndId' % tag.namespace)
         payment_kind = self.get_payment_kind(transaction)
-        if instr_id is not None:
-            return self.Payment.search([
-                    ('sepa_instruction_id', '=', instr_id.text),
-                    ('kind', '=', payment_kind),
-                    ])
-        elif end_to_end_id is not None:
+        if end_to_end_id is not None:
             return self.Payment.search([
                     ('sepa_end_to_end_id', '=', end_to_end_id.text),
                     ('kind', '=', payment_kind),

Reply via email to