[REF] remove warnings of account_budget_report.py
authorvth <vth@tinyerp.com>
Wed, 13 Oct 2010 05:36:33 +0000 (11:06 +0530)
committervth <vth@tinyerp.com>
Wed, 13 Oct 2010 05:36:33 +0000 (11:06 +0530)
bzr revid: vth@tinyerp.com-20101013053633-myirr3o9xe672lu0

addons/account_budget/report/budget_report.py
addons/account_budget/wizard/account_budget_report.py

index 1a72afb..8b98b06 100644 (file)
 ##############################################################################
 
 import time
-import datetime
-
-import pooler
 from report import report_sxw
-import operator
-import osv
+
+tot = {}
 
 class budget_report(report_sxw.rml_parse):
     def __init__(self, cr, uid, name, context):
@@ -56,7 +53,6 @@ class budget_report(report_sxw.rml_parse):
         acc_analytic_obj = self.pool.get('account.analytic.account')
         for budget_id in budgets:
             res = {}
-            budget_lines = []
             budget_ids = []
             d_from = form['date_from']
             d_to = form['date_to']
@@ -66,7 +62,6 @@ class budget_report(report_sxw.rml_parse):
 
             if not budget_ids:
                 return []
-
             self.cr.execute('SELECT DISTINCT(analytic_account_id) FROM crossovered_budget_lines WHERE id = ANY(%s)',(budget_ids,))
             an_ids = self.cr.fetchall()
 
index 0947d6f..a5db4e7 100644 (file)
@@ -21,7 +21,7 @@
 import time
 
 from osv import fields, osv
-from tools.translate import _
+
 
 class account_budget_report(osv.osv_memory):