From 32ff13021d1269403a35518111fbfd067d2e0e7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 19 Aug 2016 21:32:29 +0200 Subject: [PATCH] Do not apply MoveLine filter to compute Party payable/receivable The MoveLine.query_get is only for fiscal year purpose but payable and receivable are deferrable. This should have been removed with changeset c7da745a25fc when the deferrable concept was introduced. issue5793 review30411003 --- party.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/party.py b/party.py index f949faf511..13b8e2592b 100644 --- a/party.py +++ b/party.py @@ -90,8 +90,6 @@ class Party: return result company_id = user.company.id - line_query, _ = MoveLine.query_get(line) - amount = Sum(Coalesce(line.debit, 0) - Coalesce(line.credit, 0)) for name in names: code = name @@ -110,7 +108,6 @@ class Party: & (account.kind == code) & (line.reconciliation == Null) & (account.company == company_id) - & line_query & party_where & today_where & (account.kind == code)),