From 7b4cae7e4cbcfe64d3c1c2b48dd21d7c463bc313 Mon Sep 17 00:00:00 2001 From: "Jay (OpenERP)" Date: Fri, 1 Oct 2010 01:20:17 +0530 Subject: [PATCH] [FIX] Account : Regression corrected arising from change of library from mx.DateTime to datetime lp bug: https://launchpad.net/bugs/651889 fixed bzr revid: jvo@tinyerp.com-20100930195017-hkwz11fheftmo6j8 --- addons/account/report/account_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/report/account_report.py b/addons/account/report/account_report.py index b7d3441913f..1136300f065 100644 --- a/addons/account/report/account_report.py +++ b/addons/account/report/account_report.py @@ -132,7 +132,7 @@ class report_aged_receivable(osv.osv): while (last_month_date > fy_start_date): LIST_RANGES.append(today + " to " + last_month_date.strftime('%Y-%m-%d')) - today = (last_month_date- 1).strftime('%Y-%m-%d') + today = (last_month_date- relativedelta(days=1)).strftime('%Y-%m-%d') last_month_date = datetime.strptime(today, '%Y-%m-%d') - relativedelta(months=1) LIST_RANGES.append(today +" to " + fy_start_date.strftime('%Y-%m-%d'))