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