[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
This commit is contained in:
parent
2ce775b132
commit
7b4cae7e4c
|
@ -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'))
|
||||
|
|
Loading…
Reference in New Issue