[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:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user