[FIX] account : Bank Statement - Reference does not appear in journal entry

lp bug: https://launchpad.net/bugs/870242 fixed

bzr revid: bde@tinyerp.com-20111012113655-33zysf4o7ma098tt
This commit is contained in:
Mustufa Rangwala 2011-10-12 17:06:55 +05:30 committed by Bharat (OpenERP)
parent 2ec5a68b25
commit 61ee32859b
1 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,7 @@ class account_bank_statement(osv.osv):
states={'confirm':[('readonly',True)]}),
'balance_end_real': fields.float('Ending Balance', digits_compute=dp.get_precision('Account'),
states={'confirm': [('readonly', True)]}),
'balance_end': fields.function(_end_balance,
'balance_end': fields.function(_end_balance,
store = {
'account.bank.statement': (lambda self, cr, uid, ids, c={}: ids, ['line_ids','move_line_ids'], 10),
'account.bank.statement.line': (_get_statement, ['amount'], 10),
@ -219,6 +219,7 @@ class account_bank_statement(osv.osv):
'period_id': st.period_id.id,
'date': st_line.date,
'name': st_line_number,
'ref': st_line.ref,
}, context=context)
account_bank_statement_line_obj.write(cr, uid, [st_line.id], {
'move_ids': [(4, move_id, False)]