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), ]