From d5e4c484490ebc6d642601f50cb795cf463c5dd9 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 31 May 2011 22:51:28 +0200 Subject: [PATCH] [IMP] account: treasury report compliancy with multi company + fixed warning of account/report/account_treasury_report.py (unused ref_dict variable) bzr revid: qdp-launchpad@openerp.com-20110531205128-i1noccss0p3x8a1p --- addons/account/report/account_treasury_report.py | 1 - addons/account/report/account_treasury_report_view.xml | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/report/account_treasury_report.py b/addons/account/report/account_treasury_report.py index f8c569c82f7..9b364a55777 100644 --- a/addons/account/report/account_treasury_report.py +++ b/addons/account/report/account_treasury_report.py @@ -31,7 +31,6 @@ class account_treasury_report(osv.osv): def _compute_balances(self, cr, uid, ids, field_names, arg=None, context=None, query='', query_params=()): all_treasury_lines = self.search(cr, uid, [], context=context) - ref_dict = {} current_sum = 0 res = dict((id, dict((fn, 0.0) for fn in field_names)) for id in all_treasury_lines) for record in self.browse(cr, uid, all_treasury_lines, context=context): diff --git a/addons/account/report/account_treasury_report_view.xml b/addons/account/report/account_treasury_report_view.xml index 2168df809e2..eceb1e5c760 100644 --- a/addons/account/report/account_treasury_report_view.xml +++ b/addons/account/report/account_treasury_report_view.xml @@ -15,7 +15,7 @@ - + @@ -39,6 +39,7 @@ +