From 1402ba7d66e72b7ea38e0b6d8a22325a805c7da5 Mon Sep 17 00:00:00 2001 From: qdp Date: Tue, 16 Sep 2008 11:00:05 +0200 Subject: [PATCH] *bugfix: the chart wasn't openning if here were no fiscal year selected bzr revid: qdp@tinyerp.com-20080916090005-d9mrxuj168qgsj9o --- addons/account/wizard/wizard_account_chart.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account/wizard/wizard_account_chart.py b/addons/account/wizard/wizard_account_chart.py index 1a0e0dcfa18..1a1dcd51b8d 100644 --- a/addons/account/wizard/wizard_account_chart.py +++ b/addons/account/wizard/wizard_account_chart.py @@ -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 = {