Fix Third Party Balance from changeset db33b1a23a4e

With the new report API, the records must be set explicitly to the context to
override the standard list.

issue4721
review15361003
This commit is contained in:
Cédric Krier committed 2015-05-19 09:47:17 +02:00
1 parent b6ca48f449
commit 95b001ba72
1 file changed
+1
+1
View File
@@ -2049,6 +2049,7 @@ class ThirdPartyBalance(Report):
report_context['total_debit'] = sum((x['debit'] for x in objects))
report_context['total_credit'] = sum((x['credit'] for x in objects))
report_context['total_solde'] = sum((x['solde'] for x in objects))
report_context['records'] = objects
return report_context