From f6b912e60cda5cc13aef45bdf7806dfd2218e283 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Mon, 21 Mar 2011 19:06:57 +0530 Subject: [PATCH] [FIX] account: replace query by search bzr revid: mra@mra-laptop-20110321133657-o5uidd2kzj5hse1c --- addons/account/installer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/account/installer.py b/addons/account/installer.py index f46b1b0f7e8..e2f21b44bd8 100644 --- a/addons/account/installer.py +++ b/addons/account/installer.py @@ -36,8 +36,7 @@ class account_installer(osv.osv_memory): def _get_charts(self, cr, uid, context=None): modules = self.pool.get('ir.module.module') - cr.execute("SELECT id FROM ir_module_module WHERE name like 'l10n_%'") - ids = [r[0] for r in cr.fetchall()] + ids = modules.search(cr, uid, [('name', 'like', 'l10n_%')], context=context) charts = list( sorted(((m.name, m.shortdesc) for m in modules.browse(cr, uid, ids, context=context)),