changeset c716fc900fa3 in modules/bank:6.4 details: https://hg.tryton.org/modules/bank?cmd=changeset&node=c716fc900fa3 description: Hide inactive accounts from party bank accounts
issue11590 review441711003 (grafted from 6a6bf5b8ea540f1b5e72f9b0d2fc8a54b3ff35ce) diffstat: party.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diffs (15 lines): diff -r a3a9a8defaec -r c716fc900fa3 party.py --- a/party.py Sat Nov 05 17:33:26 2022 +0100 +++ b/party.py Tue Nov 15 07:56:21 2022 +0100 @@ -7,8 +7,9 @@ class Party(metaclass=PoolMeta): __name__ = 'party.party' - bank_accounts = fields.Many2Many('bank.account-party.party', 'owner', - 'account', 'Bank Accounts') + bank_accounts = fields.Many2Many( + 'bank.account-party.party', 'owner', 'account', "Bank Accounts", + filter=[('active', '=', True)]) @classmethod def search_rec_name(cls, name, clause):