From 9aa8a212d323eb2793098c63ec4945c3a0d1561d Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Mon, 18 Apr 2016 09:51:25 +0200 Subject: [PATCH] [FIX] account: pdf report of general ledger was including the first day of range in the initial balance. PR #11316 --- addons/account/report/account_general_ledger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/report/account_general_ledger.py b/addons/account/report/account_general_ledger.py index 363a52bfe72..08a1d3a137c 100644 --- a/addons/account/report/account_general_ledger.py +++ b/addons/account/report/account_general_ledger.py @@ -31,7 +31,7 @@ class ReportGeneralLedger(models.AbstractModel): # Prepare initial sql query and Get the initial move lines if init_balance: - init_tables, init_where_clause, init_where_params = MoveLine.with_context(date_to=self.env.context.get('date_from'), date_from=False)._query_get() + init_tables, init_where_clause, init_where_params = MoveLine.with_context(date_from=self.env.context.get('date_from'), date_to=False, initial_bal=True)._query_get() init_wheres = [""] if init_where_clause.strip(): init_wheres.append(init_where_clause.strip())