[FIX]: fix problem of sequence in cash statemnet

bzr revid: mga@tinyerp.com-20100628141416-pnwwjb3de35wdb5s
This commit is contained in:
Mantavya Gajjar 2010-06-28 19:44:16 +05:30
parent 69ea761e14
commit 5042d16033
1 changed files with 1 additions and 1 deletions

View File

@ -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 = []