From 2add57ba57904a670d97a916f788028086ecbca2 Mon Sep 17 00:00:00 2001 From: "ARA (OpenERP)" Date: Thu, 27 Jan 2011 11:09:37 +0530 Subject: [PATCH] [FIX] account: [trunk][account] useless variable in button_confirm_bank lp bug: https://launchpad.net/bugs/707404 fixed bzr revid: ara@tinyerp.com-20110127053937-sbk2lu0qle04w60x --- addons/account/account_bank_statement.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py index a2e641dc39c..0027080eceb 100644 --- a/addons/account/account_bank_statement.py +++ b/addons/account/account_bank_statement.py @@ -314,7 +314,6 @@ class account_bank_statement(osv.osv): return state=='draft' def button_confirm_bank(self, cr, uid, ids, context=None): - done = [] obj_seq = self.pool.get('ir.sequence') if context is None: context = {} @@ -355,7 +354,6 @@ class account_bank_statement(osv.osv): self.write(cr, uid, [st.id], {'name': st_number}, context=context) self.log(cr, uid, st.id, _('Statement %s is confirmed, journal items are created.') % (st_number,)) - done.append(st.id) return self.write(cr, uid, ids, {'state':'confirm'}, context=context) def button_cancel(self, cr, uid, ids, context=None):