From e543e295cfe2f81cf8600b1fc00006834b694656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 15 Jan 2026 14:41:53 +0100 Subject: [PATCH] Add company clause to balance domain for direct debit reception Closes #14499 --- modules/account_payment/party.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/account_payment/party.py b/modules/account_payment/party.py index 6bc7ba814b..bc47f0143d 100644 --- a/modules/account_payment/party.py +++ b/modules/account_payment/party.py @@ -170,6 +170,7 @@ class PartyReceptionDirectDebit( ('maturity_date', '=', None), ], ('payment_blocked', '!=', True), + ('company', '=', self.company.id), ] def get_balance_pending_payment_domain(self): @@ -178,6 +179,7 @@ class PartyReceptionDirectDebit( ('currency', '=', self.currency.id), ('state', 'not in', ['succeeded', 'failed']), ('line', '=', None), + ('company', '=', self.company.id), ]