*bugfix: the chart wasn't openning if here were no fiscal year selected

bzr revid: qdp@tinyerp.com-20080916090005-d9mrxuj168qgsj9o
This commit is contained in:
qdp 2008-09-16 11:00:05 +02:00
parent 86ac15381e
commit 1402ba7d66
1 changed files with 2 additions and 1 deletions

View File

@ -69,7 +69,8 @@ class wizard_account_chart(wizard.interface):
id = mod_obj.read(cr, uid, [result], ['res_id'])[0]['res_id']
result = act_obj.read(cr, uid, [id])[0]
result['context'] = str({'fiscalyear': data['form']['fiscalyear'],'target_move':data['form']['target_move']})
result['name']+=':'+pooler.get_pool(cr.dbname).get('account.fiscalyear').read(cr,uid,[data['form']['fiscalyear']])[0]['code']
if data['form']['fiscalyear']:
result['name']+=':'+pooler.get_pool(cr.dbname).get('account.fiscalyear').read(cr,uid,[data['form']['fiscalyear']])[0]['code']
return result
states = {