issue11590.diff [bank] Hide inactive accounts from party bank accounts

#163131
This commit is contained in:
Raimon Esteve 2023-11-02 09:49:58 +01:00
parent 5948e64179
commit d4f13b204b
2 changed files with 15 additions and 0 deletions

13
issue11590.diff Normal file
View File

@ -0,0 +1,13 @@
diff --git a/tryton/modules/bank/party.py b/tryton/modules/bank/party.py
index e7857ba5fb..4b07258f93 100644
--- a/tryton/modules/bank/party.py
+++ b/tryton/modules/bank/party.py
@@ -8,7 +8,7 @@ from trytond.transaction import Transaction
class Party(metaclass=PoolMeta):
__name__ = 'party.party'
bank_accounts = fields.Many2Many('bank.account-party.party', 'owner',
- 'account', 'Bank Accounts')
+ 'account', 'Bank Accounts', filter=[('active', '=', True)])
@classmethod
def search_rec_name(cls, name, clause):

2
series
View File

@ -125,3 +125,5 @@ issue12626.diff # [account] Do not fail when reconciling an empty list
issue12653.diff # [purchase] Depend on product supplier unit to compute unit on price
issue12678.diff # [account_statement] Not delete statement lines when statament is not draft state
issue11590.diff # [bank] Hide inactive accounts from party bank accounts