From 78bb7af017461c78c18aae7afbbf371fba5f60aa Mon Sep 17 00:00:00 2001 From: Anthony Muschang Date: Fri, 10 Oct 2014 14:01:08 +0200 Subject: [PATCH] [FIX]account_financial_report_webkit: pep8 --- .../report/common_balance_reports.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/account_financial_report_webkit/report/common_balance_reports.py b/account_financial_report_webkit/report/common_balance_reports.py index da21a34e..3d3be9ac 100644 --- a/account_financial_report_webkit/report/common_balance_reports.py +++ b/account_financial_report_webkit/report/common_balance_reports.py @@ -296,11 +296,14 @@ class CommonBalanceReportHeaderWebkit(CommonReportHeaderWebkit): elif account.type == 'view': to_display_accounts.update( dict([(a.id, True) for a in account.child_id])) - debit_accounts['account_id'] = accounts_by_ids[account.id]['debit'] - credit_accounts['account_id'] = accounts_by_ids[account.id]['credit'] - balance_accounts['account_id'] = accounts_by_ids[account.id]['balance'] - init_balance_accounts[account.id] = accounts_by_ids[ - account.id].get('init_balance', 0.0) + debit_accounts['account_id'] = \ + accounts_by_ids[account.id]['debit'] + credit_accounts['account_id'] = \ + accounts_by_ids[account.id]['credit'] + balance_accounts['account_id'] = \ + accounts_by_ids[account.id]['balance'] + init_balance_accounts[account.id] = \ + accounts_by_ids[account.id].get('init_balance', 0.0) # if any amount is != 0 in comparisons, we have to display the # whole account