From a12c082d55dfdc759483e224b658180cc0151379 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 6 Oct 2011 17:39:59 +0200 Subject: [PATCH] [IMP] modules have quite a number of fields we don't need, get only the name bzr revid: xmo@openerp.com-20111006153959-mft8gh1g08s4vzqz --- addons/web/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index ea56b3d2f94..7ca80fbfdec 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -327,7 +327,7 @@ class Session(openerpweb.Controller): # Retrieve database installed modules Modules = req.session.model('ir.module.module') installed = set(module['name'] for module in Modules.search_read( - [('state','=','installed'), ('name','in', candidates)])) + [('state','=','installed'), ('name','in', candidates)], ['name'])) # Merge both return list(active | installed)