details: https://code.tryton.org/tryton/commit/f635398c52ab
branch: 8.0
user: Cédric Krier <[email protected]>
date: Thu May 28 16:30:28 2026 +0200
description:
Use only active journal for reception of direct debit
Closes #14866
(grafted from e579e58686df04322d881b5911acf6b8be3b7c89)
diffstat:
modules/account_payment/party.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r f2eb4ca187d7 -r f635398c52ab modules/account_payment/party.py
--- a/modules/account_payment/party.py Wed May 27 10:21:50 2026 +0200
+++ b/modules/account_payment/party.py Thu May 28 16:30:28 2026 +0200
@@ -21,6 +21,7 @@
'party.party.payment_direct_debit', 'party', "Direct Debits")
reception_direct_debits = fields.One2Many(
'party.party.reception_direct_debit', 'party', "Direct Debits",
+ filter=[('journal.active', '=', True)],
help="Fill to debit automatically the customer.")
payment_identical_parties = fields.Function(
fields.Many2Many('party.party', None, None, "Identical Parties"),