[CHANGE]: small change, make class name according to the tiny specification
bzr revid: mga@tinyerp.com-20100216070649-zo9aui8oev9r0qqs
This commit is contained in:
parent
5d62f3debf
commit
0027d30e41
|
@ -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()
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue