From 226922265836407792050b91ba196d41cb34a9a9 Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Thu, 8 Jul 2010 16:49:21 +0530 Subject: [PATCH] [REM]: remove unused class bzr revid: mga@tinyerp.com-20100708111921-ljt97b156qyswfao --- .../account_voucher_payment.py | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/addons/account_voucher_payment/account_voucher_payment.py b/addons/account_voucher_payment/account_voucher_payment.py index a34a0859bfa..7bad021ba26 100755 --- a/addons/account_voucher_payment/account_voucher_payment.py +++ b/addons/account_voucher_payment/account_voucher_payment.py @@ -196,7 +196,8 @@ class account_voucher_line(osv.osv): residual = currency_pool.compute(cr, uid, invoice.currency_id.id, currency_id, invoice.residual) res.update({ - 'amount': residual + 'amount': residual, + 'account_id': invoice.account_id.id }) return { @@ -231,21 +232,4 @@ class account_voucher_line(osv.osv): } account_voucher_line() -class account_invoice(osv.osv): - _inherit = "account.invoice" - - def action_cancel(self, cr, uid, ids, *args): - res = super(account_invoice, self).action_cancel(cr, uid, ids, *args) - invoices = self.read(cr, uid, ids, ['move_id']) - voucher_db = self.pool.get('account.voucher') - voucher_ids = voucher_db.search(cr, uid, []) - voucher_obj = voucher_db.browse(cr, uid, voucher_ids) - move_db = self.pool.get('account.move') - move_ids = move_db.search(cr, uid, []) - move_obj = move_db.browse(cr, uid, move_ids) - return res - -account_invoice() - - # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: