changeset 226faf0e924a in modules/account:5.2
details: https://hg.tryton.org/modules/account?cmd=changeset;node=226faf0e924a
description:
Skip closed account on general ledger
issue8491
review271781002
(grafted from 916a8f8aabe1b605b343d8108c349384453b1ce2)
diffstat:
account.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r d2c2c4097e25 -r 226faf0e924a account.py
--- a/account.py Mon Jul 01 22:13:39 2019 +0200
+++ b/account.py Sat Jul 20 21:47:01 2019 +0200
@@ -1385,7 +1385,8 @@
columns.append(Column(account, fname).as_(fname))
return account.select(*columns,
where=(account.company == context.get('company'))
- & (account.type != Null))
+ & (account.type != Null)
+ & (account.closed != Literal(True)))
@classmethod
def get_period_ids(cls, name):