Use only active journal for reception of direct debit

Closes #14866
(grafted from e579e58686df04322d881b5911acf6b8be3b7c89)

--HG--
branch : 8.0
This commit is contained in:
Cédric Krier
2026-05-28 16:30:28 +02:00
parent 716fc6fd77
commit b17a80a045
+1
View File
@@ -21,6 +21,7 @@ class Party(metaclass=PoolMeta):
'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"),