From b6e17178c6ce2f8b3bec356754ac7cb154a9adee Mon Sep 17 00:00:00 2001 From: apa-tiny Date: Wed, 5 Nov 2008 16:36:32 +0530 Subject: [PATCH] small changes in age trial balance wizard bzr revid: patelamit2003@gmail.com-20081105110632-5ehzv5ki1z8qtfb8 --- addons/account/report/account_balance.py | 4 ++-- addons/account/wizard/wizard_aged_trial_balance.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/report/account_balance.py b/addons/account/report/account_balance.py index 98901a7780f..209c665031b 100755 --- a/addons/account/report/account_balance.py +++ b/addons/account/report/account_balance.py @@ -174,7 +174,7 @@ class account_balance(report_sxw.rml_parse): if account.child_id: def _check_rec(account): if not account.child_id: - + print"(account.credit or account.debit)",bool(account.credit or account.debit) return bool(account.credit or account.debit) for c in account.child_id: if _check_rec(c): @@ -206,7 +206,7 @@ class account_balance(report_sxw.rml_parse): def moveline(self,form,ids,level): res={} - + print"str(ids)",str(ids) self.date_lst_string = '\'' + '\',\''.join(map(str,self.date_lst)) + '\'' self.cr.execute( "SELECT l.id as lid,l.date,j.code as jname, l.ref, l.name as lname, l.debit as debit1, l.credit as credit1 " \ diff --git a/addons/account/wizard/wizard_aged_trial_balance.py b/addons/account/wizard/wizard_aged_trial_balance.py index a1b42a59348..51c7994f9df 100755 --- a/addons/account/wizard/wizard_aged_trial_balance.py +++ b/addons/account/wizard/wizard_aged_trial_balance.py @@ -46,7 +46,7 @@ _aged_trial_fields = { 'result_selection':{ 'string':"Filter on Partners", 'type':'selection', - 'selection':[('customer','Customer'),('supplier','Supplier'),('all','All')], + 'selection':[('customer','Receivable'),('supplier','Payable'),('all','Receivable and Payable')], 'required':True, 'default': lambda *a: 'customer', },