Browse Source

[IMP] call the button handler to also purge reverse dependencies

pull/1009/head
Holger Brunn 8 years ago
parent
commit
6c9153075d
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  1. 2
      database_cleanup/models/purge_modules.py

2
database_cleanup/models/purge_modules.py

@ -48,7 +48,7 @@ class CleanupPurgeLineModule(models.TransientModel):
if not modules:
return True
self.logger.info('Purging modules %s', ', '.join(module_names))
modules.write({'state': 'to remove'})
modules.button_uninstall()
# we need this commit because reloading the registry would roll back
# our changes
self.env.cr.commit() # pylint: disable=invalid-commit

Loading…
Cancel
Save