From e9600b82567d34735680cb287aeeb9de105e88ae Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Thu, 3 Nov 2011 15:40:39 +0100 Subject: [PATCH] [FIX] account: Use the category 'Account Charts' for the wizard of Chart of Accounts bzr revid: stw@openerp.com-20111103144039-fqikzqv88ka89yxs --- addons/account/installer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/account/installer.py b/addons/account/installer.py index a91af8f0862..6c6d6c41695 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -38,7 +38,9 @@ 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, [('name', 'like', 'l10n_')], context=context) + # Looking for the module with the 'Account Charts' category + category_name, category_id = self.pool.get('ir.model.data').get_object_reference(cr, uid, 'base', 'module_category_localization_account_charts') + ids = modules.search(cr, uid, [('category_id', '=', category_id)], context=context) charts = list( sorted(((m.name, m.shortdesc) for m in modules.browse(cr, uid, ids, context=context)),