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

pull/2684/head
Holger Brunn 2016-09-15 10:19:28 +02:00 committed by Miika Nissi
parent 39d97e032d
commit 5bba296582
No known key found for this signature in database
GPG Key ID: B20DC9FCFAF92E7F
1 changed files with 1 additions and 1 deletions

View File

@ -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