Browse Source

[FIX] purge uninstalled uninstallable modules instead of deleting

pull/490/head
Holger Brunn 8 years ago
parent
commit
e1d5737fcd
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  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