Remove active clause on account to compute party's deposit

The active column has been removed by issue7417
This commit is contained in:
Cédric Krier committed 2018-09-01 23:12:15 +02:00
1 parent dca6f6e2e8
commit 67a29f50e7
1 file changed
+1 -2
+1 -2
View File
@@ -51,8 +51,7 @@ class Party(metaclass=PoolMeta):
).select(line.party,
# Use credit - debit to positive deposit amount
Sum(Coalesce(line.credit, 0) - Coalesce(line.debit, 0)),
where=account.active
& (account.kind == 'deposit')
where=(account.kind == 'deposit')
& party_clause
& (line.reconciliation == Null)
& (account.company == user.company.id)