From f43fb6805d66bf3ebebe259eade83c598c792b69 Mon Sep 17 00:00:00 2001 From: Jacques-Etienne Baudoux Date: Mon, 23 Oct 2017 16:31:21 +0200 Subject: [PATCH] [FIX] open invoices report: when a fiscal year is selected, start from the first special period instead of the first period of the fiscal year. Otherwise outstanding invoices from previous years are not shown. (README states that it "shows open invoices from previous years") --- account_financial_report_webkit/report/open_invoices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_financial_report_webkit/report/open_invoices.py b/account_financial_report_webkit/report/open_invoices.py index 07fd92e7..80a7a9e0 100644 --- a/account_financial_report_webkit/report/open_invoices.py +++ b/account_financial_report_webkit/report/open_invoices.py @@ -120,7 +120,7 @@ class PartnersOpenInvoicesWebkit(report_sxw.rml_parse, group_by_currency = self._get_form_param('group_by_currency', data) if main_filter == 'filter_no' and fiscalyear: - start_period = self.get_first_fiscalyear_period(fiscalyear) + start_period = self._get_first_special_period() stop_period = self.get_last_fiscalyear_period(fiscalyear) # Retrieving accounts