[FIX] Account : Partner ledger wizard issue corrected

lp bug: https://launchpad.net/bugs/537491 fixed

bzr revid: jvo@tinyerp.com-20100315094819-017k2wgl0kqlny9w
This commit is contained in:
GPA(OpenERP)
2010-03-15 15:18:19 +05:30
committed by Jay (Open ERP)
parent d96501aa74
commit a64e07de85
@@ -114,7 +114,7 @@ class wizard_report(wizard.interface):
sql = """
SELECT f.id, f.date_start, f.date_stop FROM account_fiscalyear f Where %s between f.date_start and f.date_stop """
cr.execute(sql,(data['form']['date1']))
cr.execute(sql,(data['form']['date1'],))
res = cr.dictfetchall()
if res:
if (data['form']['date2'] > res[0]['date_stop'] or data['form']['date2'] < res[0]['date_start']):