[FIX]: fix problem of sequence in cash statemnet
bzr revid: mga@tinyerp.com-20100628141416-pnwwjb3de35wdb5s
This commit is contained in:
parent
69ea761e14
commit
5042d16033
|
@ -241,7 +241,7 @@ class account_cash_statement(osv.osv):
|
|||
statement_pool = self.pool.get('account.bank.statement')
|
||||
|
||||
statement = statement_pool.browse(cr, uid, ids[0])
|
||||
number = self.pool.get('ir.sequence').get(cr, uid, 'account.bank.statement')
|
||||
number = self.pool.get('ir.sequence').get(cr, uid, statement.journal_id.sequence_id.code)
|
||||
|
||||
if len(statement.starting_details_ids) > 0:
|
||||
sid = []
|
||||
|
|
Loading…
Reference in New Issue