[FIX] account journal create sequence with company_id

bzr revid: al@openerp.com-20110831151617-goq19llee5iajmb8
This commit is contained in:
Antony Lesuisse 2011-08-31 17:16:17 +02:00
parent 0312e68bc3
commit 68063122c4
1 changed files with 2 additions and 5 deletions

View File

@ -660,11 +660,6 @@ class account_journal(osv.osv):
def create_sequence(self, cr, uid, vals, context=None):
"""
Create new entry sequence for every new Joural
@param cr: cursor to database
@param user: id of current user
@param ids: list of record ids to be process
@param context: context arguments, like lang, time zone
@return: return a result
"""
seq_pool = self.pool.get('ir.sequence')
seq_typ_pool = self.pool.get('ir.sequence.type')
@ -686,6 +681,8 @@ class account_journal(osv.osv):
'padding': 4,
'number_increment': 1
}
if 'company_id' in vals:
seq['company_id'] = vals['company_id']
return seq_pool.create(cr, uid, seq)
def create(self, cr, uid, vals, context=None):