From 03dcaad9b3f19e8025f82e5b921048f8f5ecb2b3 Mon Sep 17 00:00:00 2001 From: pso Date: Mon, 18 Oct 2010 12:19:23 +0530 Subject: [PATCH] [IMP] account: Removed unused vars bzr revid: pso@tinyerp.com-20101018064923-zyo9f0u8pc4s1m9g --- addons/account/wizard/account_change_currency.py | 2 -- addons/account/wizard/account_chart.py | 1 - addons/account/wizard/account_invoice_state.py | 2 +- addons/account/wizard/account_journal_select.py | 2 +- addons/account/wizard/account_move_bank_reconcile.py | 1 - addons/account/wizard/account_move_journal.py | 3 +-- addons/account/wizard/account_period_close.py | 1 - addons/account/wizard/account_reconcile.py | 1 - addons/account/wizard/account_reconcile_partner_process.py | 1 - 9 files changed, 3 insertions(+), 11 deletions(-) diff --git a/addons/account/wizard/account_change_currency.py b/addons/account/wizard/account_change_currency.py index 5b03710659e..b6dccb6e5b1 100644 --- a/addons/account/wizard/account_change_currency.py +++ b/addons/account/wizard/account_change_currency.py @@ -35,7 +35,6 @@ class account_change_currency(osv.osv_memory): if context is None: context = {} if context.get('active_id',False): - state = obj_inv.browse(cr, uid, context['active_id']).state if obj_inv.browse(cr, uid, context['active_id']).state != 'draft': raise osv.except_osv(_('Error'), _('You can only change currency for Draft Invoice !')) pass @@ -44,7 +43,6 @@ class account_change_currency(osv.osv_memory): obj_inv = self.pool.get('account.invoice') obj_inv_line = self.pool.get('account.invoice.line') obj_currency = self.pool.get('res.currency') - invoice_ids = [] if context is None: context = {} data = self.read(cr, uid, ids)[0] diff --git a/addons/account/wizard/account_chart.py b/addons/account/wizard/account_chart.py index 22dd7505f74..7f6a983025f 100644 --- a/addons/account/wizard/account_chart.py +++ b/addons/account/wizard/account_chart.py @@ -21,7 +21,6 @@ import time from osv import fields, osv -from tools.translate import _ class account_chart(osv.osv_memory): """ diff --git a/addons/account/wizard/account_invoice_state.py b/addons/account/wizard/account_invoice_state.py index fb2e488ac2f..2e7a519aa34 100644 --- a/addons/account/wizard/account_invoice_state.py +++ b/addons/account/wizard/account_invoice_state.py @@ -19,7 +19,7 @@ # ############################################################################## -from osv import fields, osv +from osv import osv from tools.translate import _ import netsvc import pooler diff --git a/addons/account/wizard/account_journal_select.py b/addons/account/wizard/account_journal_select.py index ab59c252917..0337009d1c8 100644 --- a/addons/account/wizard/account_journal_select.py +++ b/addons/account/wizard/account_journal_select.py @@ -19,7 +19,7 @@ # ############################################################################## -from osv import fields, osv +from osv import osv class account_journal_select(osv.osv_memory): """ diff --git a/addons/account/wizard/account_move_bank_reconcile.py b/addons/account/wizard/account_move_bank_reconcile.py index 2935aa5358d..2e6a52e56cd 100644 --- a/addons/account/wizard/account_move_bank_reconcile.py +++ b/addons/account/wizard/account_move_bank_reconcile.py @@ -19,7 +19,6 @@ # ############################################################################## -import tools from osv import fields, osv from tools.translate import _ diff --git a/addons/account/wizard/account_move_journal.py b/addons/account/wizard/account_move_journal.py index 9564fdb37e7..4c6784e03e9 100644 --- a/addons/account/wizard/account_move_journal.py +++ b/addons/account/wizard/account_move_journal.py @@ -19,9 +19,8 @@ # ############################################################################## -from osv import fields, osv +from osv import osv from tools.translate import _ -import tools class account_move_journal(osv.osv_memory): _name = "account.move.journal" diff --git a/addons/account/wizard/account_period_close.py b/addons/account/wizard/account_period_close.py index 1bc34c39b80..3b3acecc389 100644 --- a/addons/account/wizard/account_period_close.py +++ b/addons/account/wizard/account_period_close.py @@ -20,7 +20,6 @@ ############################################################################## from osv import fields, osv -from tools.translate import _ class account_period_close(osv.osv_memory): """ diff --git a/addons/account/wizard/account_reconcile.py b/addons/account/wizard/account_reconcile.py index 1b13064a208..b15a02c9947 100644 --- a/addons/account/wizard/account_reconcile.py +++ b/addons/account/wizard/account_reconcile.py @@ -82,7 +82,6 @@ class account_move_line_reconcile(osv.osv_memory): if context is None: context = {} - data = self.read(cr, uid, ids, context=context) date = time.strftime('%Y-%m-%d') ids = period_obj.find(cr, uid, dt=date, context=context) if ids: diff --git a/addons/account/wizard/account_reconcile_partner_process.py b/addons/account/wizard/account_reconcile_partner_process.py index 2bc920b1993..e65ed778ef4 100644 --- a/addons/account/wizard/account_reconcile_partner_process.py +++ b/addons/account/wizard/account_reconcile_partner_process.py @@ -22,7 +22,6 @@ import time from osv import osv, fields -from tools.translate import _ class account_partner_reconcile_process(osv.osv_memory): _name = 'account.partner.reconcile.process'