Skip to content

Commit f5b344e

Browse files
hbrunndamdam-s
authored andcommitted
[IMP] call the button handler to also purge reverse dependencies
1 parent afff209 commit f5b344e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database_cleanup/models/purge_modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def purge(self):
4848
if not modules:
4949
return True
5050
self.logger.info('Purging modules %s', ', '.join(module_names))
51-
modules.write({'state': 'to remove'})
51+
modules.button_uninstall()
5252
# we need this commit because reloading the registry would roll back
5353
# our changes
5454
self.env.cr.commit() # pylint: disable=invalid-commit

0 commit comments

Comments
 (0)