diff --git a/addons/account/wizard/account_chart.py b/addons/account/wizard/account_chart.py index 7def37807c3..38f47114490 100644 --- a/addons/account/wizard/account_chart.py +++ b/addons/account/wizard/account_chart.py @@ -21,7 +21,6 @@ from osv import fields, osv from tools.translate import _ -import tools class account_chart(osv.osv_memory): """ diff --git a/addons/account/wizard/account_invoice_refund.py b/addons/account/wizard/account_invoice_refund.py index cc69311b2f7..1942fd56e60 100644 --- a/addons/account/wizard/account_invoice_refund.py +++ b/addons/account/wizard/account_invoice_refund.py @@ -18,13 +18,10 @@ # along with this program. If not, see . # ############################################################################## - from osv import fields, osv from tools.translate import _ -import tools import netsvc - class account_invoice_refund(osv.osv_memory): """Refunds invoice.""" diff --git a/addons/account/wizard/account_move_line_reconcile_select.py b/addons/account/wizard/account_move_line_reconcile_select.py index db0ddb10108..d089db01f5e 100644 --- a/addons/account/wizard/account_move_line_reconcile_select.py +++ b/addons/account/wizard/account_move_line_reconcile_select.py @@ -18,11 +18,8 @@ # along with this program. If not, see . # ############################################################################## - from osv import fields, osv from tools.translate import _ -import tools - class account_move_line_reconcile_select(osv.osv_memory): _name = "account.move.line.reconcile.select" @@ -41,17 +38,16 @@ class account_move_line_reconcile_select(osv.osv_memory): @return: dictionary of Open account move line window for reconcile on given account id """ - for data in self.read(cr, uid, ids,context=context): - - return { - 'domain': "[('account_id','=',%d),('reconcile_id','=',False),('state','<>','draft')]" % data['account_id'], - 'name': _('Reconciliation'), - 'view_type': 'form', - 'view_mode': 'tree,form', - 'view_id': False, - 'res_model': 'account.move.line', - 'type': 'ir.actions.act_window' - } + data = self.read(cr, uid, ids, context=context)[0] + return { + 'domain': "[('account_id','=',%d),('reconcile_id','=',False),('state','<>','draft')]" % data['account_id'], + 'name': _('Reconciliation'), + 'view_type': 'form', + 'view_mode': 'tree,form', + 'view_id': False, + 'res_model': 'account.move.line', + 'type': 'ir.actions.act_window' + } account_move_line_reconcile_select() diff --git a/addons/account/wizard/account_move_line_reconcile_select_view.xml b/addons/account/wizard/account_move_line_reconcile_select_view.xml index f7fcccddc4c..ae7f9567748 100644 --- a/addons/account/wizard/account_move_line_reconcile_select_view.xml +++ b/addons/account/wizard/account_move_line_reconcile_select_view.xml @@ -15,7 +15,7 @@