[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
This commit is contained in:
Olivier Dony
2010-09-07 17:06:06 +02:00
parent a73711cb18
commit 26ed95e772
+2 -2
View File
@@ -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)