From 26ed95e7729fc93370ca8d9b34e4ed41797f482e Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Tue, 7 Sep 2010 17:06:06 +0200 Subject: [PATCH] [IMP] res.config.installer: fix addons install-status display Addons marked "to remove" will not be considered installed, so we can reactivate them in the wizard bzr revid: odo@openerp.com-20100907150606-0bkw03phaddx6n21 --- bin/addons/base/res/res_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/addons/base/res/res_config.py b/bin/addons/base/res/res_config.py index a529fcbb200..f94c4fbeaa6 100644 --- a/bin/addons/base/res/res_config.py +++ b/bin/addons/base/res/res_config.py @@ -330,7 +330,7 @@ class res_config_installer(osv.osv_memory): def _already_installed(self, cr, uid, context=None): """ For each module (boolean fields in a res.config.installer), - check if it's already installed (neither uninstallable nor uninstalled) + check if it's already installed (either 'to install', 'to upgrade' or 'installed') and if it is, check it by default """ modules = self.pool.get('ir.module.module') @@ -341,7 +341,7 @@ class res_config_installer(osv.osv_memory): cr, uid, modules.search(cr, uid, [('name','in',selectable), - ('state','not in',['uninstallable', 'uninstalled'])], + ('state','in',['to install', 'installed', 'to upgrade'])], context=context), context=context)