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

        Closes #15229
        (grafted from fe09ebefd331d65b322bba20048abb38c9c83b20)
diffstat:

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

diffs (22 lines):

diff -r d67813f7b669 -r 54317eb05592 
modules/account_payment_sepa/sepa_handler.py
--- a/modules/account_payment_sepa/sepa_handler.py      Mon Nov 30 10:32:59 
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