From 13a57aa62d37960e159dc98534f199fc9053d523 Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Thu, 2 Jul 2009 20:08:31 +0530 Subject: [PATCH] [FIX] Account : Charts of accounts - target move options corrected lp bug: https://launchpad.net/bugs/394275 fixed bzr revid: jvo@tinyerp.com-20090702143831-e8t92cza5rbyoj4g --- addons/account/wizard/wizard_account_chart.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/wizard/wizard_account_chart.py b/addons/account/wizard/wizard_account_chart.py index f60dfdcf0a2..124a8146c34 100644 --- a/addons/account/wizard/wizard_account_chart.py +++ b/addons/account/wizard/wizard_account_chart.py @@ -41,7 +41,7 @@ class wizard_account_chart(wizard.interface): 'target_move': { 'string': 'Target Moves', 'type': 'selection', - 'selection': [('all','All Entries'),('posted_only','All Posted Entries')], + 'selection': [('all','All Entries'),('posted','All Posted Entries')], 'required': True, 'default': lambda *a:"all", }, @@ -60,7 +60,7 @@ class wizard_account_chart(wizard.interface): result = mod_obj._get_id(cr, uid, 'account', 'action_account_tree') id = mod_obj.read(cr, uid, [result], ['res_id'])[0]['res_id'] result = act_obj.read(cr, uid, [id], context=context)[0] - result['context'] = str({'fiscalyear': data['form']['fiscalyear'],'target_move':data['form']['target_move']}) + result['context'] = str({'fiscalyear': data['form']['fiscalyear'],'state':data['form']['target_move']}) if data['form']['fiscalyear']: result['name']+=':'+pooler.get_pool(cr.dbname).get('account.fiscalyear').read(cr,uid,[data['form']['fiscalyear']])[0]['code'] return result