Browse Source

Merge pull request #490 from hbrunn/9.0-database_cleanup-purge_uninstalled

[FIX] purge uninstalled uninstallable modules instead of deleting
pull/454/merge
Stefan Rijnhart (Opener) 8 years ago
committed by GitHub
parent
commit
25f8bce7fe
  1. 4
      database_cleanup/models/purge_modules.py

4
database_cleanup/models/purge_modules.py

@ -69,7 +69,9 @@ class CleanupPurgeWizardModule(models.TransientModel):
if get_module_path(module.name): if get_module_path(module.name):
continue continue
if module.state == 'uninstalled': if module.state == 'uninstalled':
module.unlink()
self.env['cleanup.purge.line.module'].create({
'name': module.name,
}).purge()
continue continue
res.append((0, 0, {'name': module.name})) res.append((0, 0, {'name': module.name}))

Loading…
Cancel
Save