From 7bc15edf3992ab34c3ea8008de4098d77a2be18f Mon Sep 17 00:00:00 2001 From: pso Date: Thu, 21 Oct 2010 11:17:10 +0530 Subject: [PATCH] [IMP] account: Removed unused import statements from wizard and report bzr revid: pso@tinyerp.com-20101021054710-vgt2i8680jfsshx3 --- addons/account/report/account_partner_balance.py | 3 +-- addons/account/report/account_print_overdue.py | 3 +-- addons/account/report/account_tax_code.py | 3 +-- addons/account/report/rml_parse.py | 3 --- addons/account/wizard/account_move_line_select.py | 3 +-- addons/account/wizard/account_move_line_unreconcile_select.py | 2 -- addons/account/wizard/account_state_open.py | 2 +- addons/account/wizard/account_unreconcile.py | 2 +- addons/account/wizard/account_use_model.py | 1 - 9 files changed, 6 insertions(+), 16 deletions(-) diff --git a/addons/account/report/account_partner_balance.py b/addons/account/report/account_partner_balance.py index c17de597e1c..cc6d9e6e0de 100644 --- a/addons/account/report/account_partner_balance.py +++ b/addons/account/report/account_partner_balance.py @@ -20,8 +20,6 @@ ############################################################################## import time -import re -import copy from tools.translate import _ from report import report_sxw @@ -53,6 +51,7 @@ class partner_balance(report_sxw.rml_parse, common_report_header): }) def set_context(self, objects, data, ids, report_type=None): + print "SET" self.display_partner = data['form'].get('display_partner', 'non-zero_balance') obj_move = self.pool.get('account.move.line') self.query = obj_move._query_get(self.cr, self.uid, obj='l', context=data['form'].get('used_context', {})) diff --git a/addons/account/report/account_print_overdue.py b/addons/account/report/account_print_overdue.py index 3e1f0b54de1..af55018cf11 100644 --- a/addons/account/report/account_print_overdue.py +++ b/addons/account/report/account_print_overdue.py @@ -21,8 +21,6 @@ import time -import ir -from osv import osv from report import report_sxw import pooler @@ -38,6 +36,7 @@ class Overdue(report_sxw.rml_parse): }) self.context = context def _adr_get(self, partner, type): + print "ADDRESS" res = [] res_partner = pooler.get_pool(self.cr.dbname).get('res.partner') res_partner_address = pooler.get_pool(self.cr.dbname).get('res.partner.address') diff --git a/addons/account/report/account_tax_code.py b/addons/account/report/account_tax_code.py index 2f123fd00be..a154bbec009 100644 --- a/addons/account/report/account_tax_code.py +++ b/addons/account/report/account_tax_code.py @@ -21,13 +21,12 @@ ############################################################################## import time -import pooler import rml_parse -import copy from report import report_sxw import re def _get_country(record): + print "TEST" if record.partner_id \ and record.partner_id.address \ and record.partner_id.address[0].country_id: diff --git a/addons/account/report/rml_parse.py b/addons/account/report/rml_parse.py index 1d3cc629cfa..91fc986e7ea 100644 --- a/addons/account/report/rml_parse.py +++ b/addons/account/report/rml_parse.py @@ -20,11 +20,8 @@ ############################################################################## from report import report_sxw -import xml.dom.minidom import time -import osv import re -import pooler import sys diff --git a/addons/account/wizard/account_move_line_select.py b/addons/account/wizard/account_move_line_select.py index 86345703f6f..556a688f867 100644 --- a/addons/account/wizard/account_move_line_select.py +++ b/addons/account/wizard/account_move_line_select.py @@ -19,8 +19,7 @@ # ############################################################################## -from osv import fields, osv -from tools.translate import _ +from osv import osv class account_move_line_select(osv.osv_memory): """ diff --git a/addons/account/wizard/account_move_line_unreconcile_select.py b/addons/account/wizard/account_move_line_unreconcile_select.py index c445828d0ae..826a5a654b1 100644 --- a/addons/account/wizard/account_move_line_unreconcile_select.py +++ b/addons/account/wizard/account_move_line_unreconcile_select.py @@ -20,8 +20,6 @@ ############################################################################## from osv import fields, osv -from tools.translate import _ -import tools class account_move_line_unreconcile_select(osv.osv_memory): _name = "account.move.line.unreconcile.select" diff --git a/addons/account/wizard/account_state_open.py b/addons/account/wizard/account_state_open.py index 4703ea18c61..2a03a80aefa 100644 --- a/addons/account/wizard/account_state_open.py +++ b/addons/account/wizard/account_state_open.py @@ -18,7 +18,7 @@ # along with this program. If not, see . # ############################################################################## -from osv import osv, fields +from osv import osv import netsvc from tools.translate import _ diff --git a/addons/account/wizard/account_unreconcile.py b/addons/account/wizard/account_unreconcile.py index 2a77cd8fb66..88b58b68a1e 100644 --- a/addons/account/wizard/account_unreconcile.py +++ b/addons/account/wizard/account_unreconcile.py @@ -19,7 +19,7 @@ # ############################################################################## -from osv import fields, osv +from osv import osv class account_unreconcile(osv.osv_memory): _name = "account.unreconcile" diff --git a/addons/account/wizard/account_use_model.py b/addons/account/wizard/account_use_model.py index edac082f32e..baf09f5ac16 100644 --- a/addons/account/wizard/account_use_model.py +++ b/addons/account/wizard/account_use_model.py @@ -19,7 +19,6 @@ # ############################################################################## import time -import datetime from osv import fields, osv from tools.translate import _