details:   https://code.tryton.org/tryton/commit/b471b8fba667
branch:    7.6
user:      Cédric Krier <[email protected]>
date:      Thu Jan 15 14:41:53 2026 +0100
description:
        Add company clause to balance domain for direct debit reception

        Closes #14499
        (grafted from 47b5288eef79c8da9a0b89be2d4a26157b856622)
diffstat:

 modules/account_payment/party.py |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 05432ef3de16 -r b471b8fba667 modules/account_payment/party.py
--- a/modules/account_payment/party.py  Wed Jan 14 19:25:17 2026 +0100
+++ b/modules/account_payment/party.py  Thu Jan 15 14:41:53 2026 +0100
@@ -170,6 +170,7 @@
                 ('maturity_date', '=', None),
                 ],
             ('payment_blocked', '!=', True),
+            ('company', '=', self.company.id),
             ]
 
     def get_balance_pending_payment_domain(self):
@@ -178,6 +179,7 @@
             ('currency', '=', self.currency.id),
             ('state', 'not in', ['succeeded', 'failed']),
             ('line', '=', None),
+            ('company', '=', self.company.id),
             ]
 
 

Reply via email to