diff options
| author | Jay (OpenERP) <jvo@tinyerp.com> | 2010-10-01 01:20:17 +0530 |
|---|---|---|
| committer | Jay (OpenERP) <jvo@tinyerp.com> | 2010-10-01 01:20:17 +0530 |
| commit | 7b4cae7e4cbcfe64d3c1c2b48dd21d7c463bc313 (patch) | |
| tree | 34919ddbc628f47fd26e26d0418b5adc637ade52 /addons | |
| parent | 2ce775b132992f455d99787e4c2b2a5e9531f2a6 (diff) | |
[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
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account/report/account_report.py | 2 |
1 files changed, 1 insertions, 1 deletions
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')) |
