Browse Source

Merge pull request #550 from hbrunn/9.0-database_cleanup_purge_dependencies

[IMP] call the button handler to also purge reverse dependencies
pull/559/head
Dave Lasley 8 years ago
committed by GitHub
parent
commit
2bfd8f4622
  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