summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMustufa Rangwala <mra@mra-laptop>2011-03-21 19:06:57 +0530
committerMustufa Rangwala <mra@mra-laptop>2011-03-21 19:06:57 +0530
commitf6b912e60cda5cc13aef45bdf7806dfd2218e283 (patch)
treed061b86397cacc6c3ce68efbe02ff3ef5cda875f
parentd83939845b2724ca03e0ed8cbac5c4f35d283097 (diff)
[FIX] account: replace query by search
bzr revid: mra@mra-laptop-20110321133657-o5uidd2kzj5hse1c
-rw-r--r--addons/account/installer.py3
1 files changed, 1 insertions, 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)),