From a84af1b956ef95cc9a58932d8b3f39b14cdd3b86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 8 Mar 2024 18:22:37 +0100 Subject: [PATCH] Create payment only for the first matching party reception of direct debit Closes #13086 (grafted from 360c0848e5b5b3762b850b655cfe767ed3905c79) --HG-- branch : 7.0 --- modules/account_payment/account.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/account_payment/account.py b/modules/account_payment/account.py index bc2fa2ef41..542d020a93 100644 --- a/modules/account_payment/account.py +++ b/modules/account_payment/account.py @@ -232,6 +232,7 @@ class MoveLine(metaclass=PoolMeta): for reception in line.party.reception_direct_debits: if reception.match(pattern): payments.extend(reception.get_payments(line)) + break Payment.save(payments) return payments