From 6c9153075dfa2649d3cf52d0617d9c03e00a1ea1 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Thu, 15 Sep 2016 10:19:28 +0200 Subject: [PATCH] [IMP] call the button handler to also purge reverse dependencies --- database_cleanup/models/purge_modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database_cleanup/models/purge_modules.py b/database_cleanup/models/purge_modules.py index 4804e64ee..89f4f0b43 100644 --- a/database_cleanup/models/purge_modules.py +++ b/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