small changes

bzr revid: apa@tinyerp.com-20090318104703-wu48zbveuazbw4fg
This commit is contained in:
Apa (Open ERP)
2009-03-18 16:17:03 +05:30
parent 1c89d9fd13
commit 80ee20fd3e
+3 -3
View File
@@ -93,17 +93,17 @@ class account_balance(report_sxw.rml_parse):
res={}
result_acc=[]
ctx = self.context.copy()
ctx['fiscalyear'] = form['fiscalyear']
if form['state']=='byperiod' :
ctx['fiscalyear'] = form['fiscalyear']
ctx['periods'] = form['periods'][0][2]
elif form['state']== 'bydate':
ctx['fiscalyear'] = form['fiscalyear']
ctx['date_from'] = form['date_from']
ctx['date_to'] = form['date_to']
elif form['state'] == 'all' :
ctx['fiscalyear'] = form['fiscalyear']
ctx['periods'] = form['periods'][0][2]
ctx['date_from'] = form['date_from']
ctx['date_to'] = form['date_to']
accounts = self.pool.get('account.account').browse(self.cr, self.uid, ids, ctx)
def cmp_code(x, y):