From 98313838da609900ab037bbdb88365e5bb8043c2 Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Mon, 14 Jan 2019 14:30:11 +0000 Subject: [PATCH] [FIX] account: aged partner report The aged reports were wrongly taking the previous day of the requested date to compute the different report periods. E.g: An aged balance requested for the 31-12-2018 was excluding entries made on the that exact date and was starting from the 30-12-2018 closes odoo/odoo#30195 --- addons/account/report/account_aged_partner_balance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/report/account_aged_partner_balance.py b/addons/account/report/account_aged_partner_balance.py index 6df0ffb1274..bc660b494b3 100644 --- a/addons/account/report/account_aged_partner_balance.py +++ b/addons/account/report/account_aged_partner_balance.py @@ -28,7 +28,7 @@ class ReportAgedPartnerBalance(models.AbstractModel): ctx = self._context periods = {} date_from = fields.Date.from_string(date_from) - start = date_from - relativedelta(days=1) + start = date_from for i in range(5)[::-1]: stop = start - relativedelta(days=period_length) period_name = str((5-(i+1)) * period_length + 1) + '-' + str((5-i) * period_length)