issue11590.diff [bank] Hide inactive accounts from party bank accounts
#163131
This commit is contained in:
parent
5948e64179
commit
d4f13b204b
|
@ -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
2
series
|
@ -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
|
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
|
issue12678.diff # [account_statement] Not delete statement lines when statament is not draft state
|
||||||
|
|
||||||
|
issue11590.diff # [bank] Hide inactive accounts from party bank accounts
|
||||||
|
|
Loading…
Reference in New Issue