Browse Source
[FIX] purge uninstalled uninstallable modules instead of deleting
pull/490/head
Holger Brunn
8 years ago
No known key found for this signature in database
GPG Key ID: 1C9760FECA3AE18
1 changed files with
3 additions and
1 deletions
-
database_cleanup/models/purge_modules.py
|
|
@ -69,7 +69,9 @@ class CleanupPurgeWizardModule(models.TransientModel): |
|
|
|
if get_module_path(module.name): |
|
|
|
continue |
|
|
|
if module.state == 'uninstalled': |
|
|
|
module.unlink() |
|
|
|
self.env['cleanup.purge.line.module'].create({ |
|
|
|
'name': module.name, |
|
|
|
}).purge() |
|
|
|
continue |
|
|
|
res.append((0, 0, {'name': module.name})) |
|
|
|
|
|
|
|