[FIX] partner balance with filter by periods..

bzr revid: mra@mra-laptop-20100802073214-22a5g0f663esfmra
This commit is contained in:
Mustufa Rangwala 2010-08-02 13:02:14 +05:30
parent 8368181558
commit f50dcc0da4
2 changed files with 1 additions and 3 deletions

View File

@ -214,7 +214,7 @@ class partner_balance(report_sxw.rml_parse, common_report_header):
subtotal = copy.deepcopy(subtotal_row)
init_acnt = []
for row in subtotal_row:
if final_init and row.get('account_id', False) and not row['account_id'] in init_acnt:
if final_init and row.get('account_id', False) and not row['account_id'] in init_acnt and final_init.get(row['account_id'], False):
subtotal.insert(subtotal.index(row), final_init[row['account_id']])
init_acnt.append(row['account_id'])
return subtotal
@ -455,7 +455,6 @@ class partner_balance(report_sxw.rml_parse, common_report_header):
return credit > debit and credit - debit
def _get_partners(self, data):
if data['form']['result_selection'] == 'customer':
return 'Receivable Accounts'
elif data['form']['result_selection'] == 'supplier':

View File

@ -45,7 +45,6 @@ class account_partner_balance(osv.osv_memory):
'type': 'ir.actions.report.xml',
'report_name': 'account.partner.balance',
'datas': data,
'nodestroy':True,
}
account_partner_balance()