From aad826223dfb593494a7dab95dab6977abfb2617 Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Tue, 17 Mar 2009 19:04:54 +0530 Subject: [PATCH] Corrected Account Balance wizard(ref:VRA) bzr revid: jvo@tinyerp.com-20090317133454-b36p4j0po0305zko --- .../account/wizard/wizard_account_balance_report.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/account/wizard/wizard_account_balance_report.py b/addons/account/wizard/wizard_account_balance_report.py index 232d2a80475..ea779289e2e 100644 --- a/addons/account/wizard/wizard_account_balance_report.py +++ b/addons/account/wizard/wizard_account_balance_report.py @@ -86,10 +86,10 @@ class wizard_report(wizard.interface): company_id = pooler.get_pool(cr.dbname).get('res.company').search(cr, uid, [('parent_id', '=', False)])[0] data['form']['company_id'] = company_id fiscalyear_obj = pooler.get_pool(cr.dbname).get('account.fiscalyear') - periods_obj=pooler.get_pool(cr.dbname).get('account.period') +# periods_obj=pooler.get_pool(cr.dbname).get('account.period') data['form']['fiscalyear'] = fiscalyear_obj.find(cr, uid) - data['form']['periods'] =periods_obj.search(cr, uid, [('fiscalyear_id','=',data['form']['fiscalyear'])]) - data['form']['fiscalyear'] = False +# data['form']['periods'] = periods_obj.search(cr, uid, [('fiscalyear_id','=',data['form']['fiscalyear'])]) +# data['form']['fiscalyear'] = False data['form']['display_account']='bal_all' return data['form'] @@ -97,9 +97,9 @@ class wizard_report(wizard.interface): if data['form']['state'] == 'bydate': self._check_date(cr, uid, data, context) - data['form']['fiscalyear'] = 0 - else : - data['form']['fiscalyear'] = 1 +# data['form']['fiscalyear'] = 0 +# else : +# data['form']['fiscalyear'] = 1 return data['form'] def _check_path(self, cr, uid, data, context):