From f1e349beee0823c77c8da502af0c7ee60c0b305e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 2 Apr 2026 15:29:10 +0200 Subject: [PATCH] Restrict direct debit domain to party with receptions Closes #14736 --- modules/account_payment/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/account_payment/account.py b/modules/account_payment/account.py index 47fc864c0c..66f44f02ac 100644 --- a/modules/account_payment/account.py +++ b/modules/account_payment/account.py @@ -270,7 +270,7 @@ class MoveLine(metaclass=PoolMeta): ('account.type.receivable', '=', True), ('account.type.payable', '=', True), ], - ('party', '!=', None), + ('party.reception_direct_debits', '!=', None), ('reconciliation', '=', None), ('payment_amount', '!=', 0), ('move_state', '=', 'posted'),