From d83939845b2724ca03e0ed8cbac5c4f35d283097 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Mon, 21 Mar 2011 18:47:28 +0530 Subject: [PATCH] [FIX] account: The Account Charts can not be visible in create Account Chart Wizard : Selection Field except Default Account Chart. lp bug: https://launchpad.net/bugs/739342 fixed bzr revid: mra@mra-laptop-20110321131728-mu8aba9rm17f6wym --- addons/account/installer.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account/installer.py b/addons/account/installer.py index e4229f0124c..f46b1b0f7e8 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -36,7 +36,8 @@ class account_installer(osv.osv_memory): def _get_charts(self, cr, uid, context=None): modules = self.pool.get('ir.module.module') - ids = modules.search(cr, uid, [('category_id', '=', 'Account Charts')], context=context) + cr.execute("SELECT id FROM ir_module_module WHERE name like 'l10n_%'") + ids = [r[0] for r in cr.fetchall()] charts = list( sorted(((m.name, m.shortdesc) for m in modules.browse(cr, uid, ids, context=context)),