[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
This commit is contained in:
Mustufa Rangwala
2011-03-21 18:47:28 +05:30
parent 8c5349a683
commit d83939845b
+2 -1
View File
@@ -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)),