Recover uninstall modules feature
Manage case when state is 'to remove'. issue322 review7881002
This commit is contained in:
1 parent
4891d337c9
commit
21ed4772e5
1 file changed
+3
-1
@@ -222,7 +222,7 @@ def load_module_graph(graph, pool, update=None, lang=None):
|
||||
if package_state not in ('to install', 'to upgrade'):
|
||||
if package_state == 'installed':
|
||||
package_state = 'to upgrade'
|
||||
else:
|
||||
elif package_state != 'to remove':
|
||||
package_state = 'to install'
|
||||
for child in package.childs:
|
||||
module2state[child.name] = package_state
|
||||
@@ -258,6 +258,8 @@ def load_module_graph(graph, pool, update=None, lang=None):
|
||||
Translation = pool.get('ir.translation')
|
||||
Translation.translation_import(lang2, module, filename)
|
||||
|
||||
if package_state == 'to remove':
|
||||
continue
|
||||
cursor.execute(*ir_module.select(ir_module.id,
|
||||
where=(ir_module.name == package.name)))
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user