← Back to team overview

openerp-dev-web team mailing list archive

[Merge] lp:~openerp-dev/openobject-addons/trunk-bug-739342-mra into lp:openobject-addons

 

Mustufa Rangwala (Open ERP) has proposed merging lp:~openerp-dev/openobject-addons/trunk-bug-739342-mra into lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #739342 in OpenERP Addons: "The Account Charts can not be visible in create Account Chart Wizard : Selection Field except Default Account Chart."
  https://bugs.launchpad.net/openobject-addons/+bug/739342

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-739342-mra/+merge/54207
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-739342-mra/+merge/54207
Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-bug-739342-mra.
=== modified file 'account/installer.py'
--- account/installer.py	2011-03-16 09:48:46 +0000
+++ account/installer.py	2011-03-21 13:23:33 +0000
@@ -36,7 +36,8 @@
 
     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)),


Follow ups