[IMP] account_sequence: code cleaning
bzr revid: qdp-launchpad@tinyerp.com-20101119115009-bequb9r3dmrnj6z3
This commit is contained in:
parent
7ccc66e255
commit
3d0f4796ae
|
@ -34,7 +34,6 @@ class account_move(osv.osv):
|
|||
res = super(account_move, self).post(cr, uid, ids, context=context)
|
||||
seq_no = False
|
||||
for line in self.browse(cr, uid, ids):
|
||||
# Todo: if there is not internal seq defined on journal raise error ?
|
||||
if line.journal_id.internal_sequence:
|
||||
seq_no = obj_sequence.get_id(cr, uid, line.journal_id.internal_sequence.id, context=context)
|
||||
if seq_no:
|
||||
|
@ -52,4 +51,4 @@ class account_journal(osv.osv):
|
|||
|
||||
account_journal()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
Loading…
Reference in New Issue