From ecb0c47250d232cf8261214c84a1046ce9145f2f Mon Sep 17 00:00:00 2001 From: Leonardo Pistone Date: Thu, 28 Apr 2016 16:43:40 +0200 Subject: [PATCH] actually filter by date --- .../wizard/ledger_report_wizard.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/account_financial_report_qweb/wizard/ledger_report_wizard.py b/account_financial_report_qweb/wizard/ledger_report_wizard.py index 24b707cd..5c2b507d 100644 --- a/account_financial_report_qweb/wizard/ledger_report_wizard.py +++ b/account_financial_report_qweb/wizard/ledger_report_wizard.py @@ -95,10 +95,12 @@ class LedgerReportWizard(models.TransientModel): cumul_balance, %(wizard_id)s as wizard_id - from view_q where date >= %(fy_date)s + from view_q + where date between %(date_from)s and %(date_to)s """ - params = dict(fy_date=self.fy_start_date, wizard_id=self.id) + params = dict(fy_date=self.fy_start_date, wizard_id=self.id, + date_from=self.date_from, date_to=self.date_to) self.env.cr.execute(query, params) return True