From 0027d30e41c15e5868d87ca848a67aecd3d65a06 Mon Sep 17 00:00:00 2001 From: Mantavya Gajjar Date: Tue, 16 Feb 2010 12:36:49 +0530 Subject: [PATCH] [CHANGE]: small change, make class name according to the tiny specification bzr revid: mga@tinyerp.com-20100216070649-zo9aui8oev9r0qqs --- addons/account_voucher/voucher.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/addons/account_voucher/voucher.py b/addons/account_voucher/voucher.py index d9d370d8a1d..66b701fb97a 100755 --- a/addons/account_voucher/voucher.py +++ b/addons/account_voucher/voucher.py @@ -152,7 +152,7 @@ class account_voucher(osv.osv): balance=account.balance return {'value':{'amount':balance}} - def onchange_journal(self, cr, uid, ids, journal_id,type): + def onchange_journal(self, cr, uid, ids, journal_id, type): if not journal_id: return {'value':{'account_id':False}} journal = self.pool.get('account.journal') @@ -405,7 +405,6 @@ class account_voucher(osv.osv): def _convert_ref(self, cr, uid, ref): return (ref or '').replace('/','') - def action_number(self, cr, uid, ids, *args): cr.execute('SELECT id, type, number, move_id, reference ' \ 'FROM account_voucher ' \ @@ -431,8 +430,6 @@ class account_voucher(osv.osv): (ref, move_id)) return True - - def name_get(self, cr, uid, ids, context={}): if not len(ids): return [] @@ -484,7 +481,7 @@ class account_voucher(osv.osv): account_voucher() -class VoucherLine(osv.osv): +class account_voucher_line(osv.osv): _name = 'account.voucher.line' _description = 'Voucher Line' _columns = { @@ -697,7 +694,7 @@ class VoucherLine(osv.osv): 'ref' : line.ref } -VoucherLine() +account_voucher_line()