[FIX] account: fixed error in bank statement encoding
bzr revid: qdp-launchpad@openerp.com-20111201090211-9wpml47an3kcooii
This commit is contained in:
parent
33914ef1ca
commit
094d733a3a
|
@ -30,10 +30,12 @@ class account_bank_statement(osv.osv):
|
|||
def create(self, cr, uid, vals, context=None):
|
||||
seq = 0
|
||||
if 'line_ids' in vals:
|
||||
new_line_ids = []
|
||||
for line in vals['line_ids']:
|
||||
seq += 1
|
||||
line[2]['sequence'] = seq
|
||||
vals[seq - 1] = line
|
||||
new_line_ids += tuple(line)
|
||||
vals['line_ids'] = new_line_ids
|
||||
return super(account_bank_statement, self).create(cr, uid, vals, context=context)
|
||||
|
||||
def write(self, cr, uid, ids, vals, context=None):
|
||||
|
|
Loading…
Reference in New Issue