[IMP] call the button handler to also purge reverse dependencies
parent
39d97e032d
commit
5bba296582
|
@ -48,7 +48,7 @@ class CleanupPurgeLineModule(models.TransientModel):
|
||||||
if not modules:
|
if not modules:
|
||||||
return True
|
return True
|
||||||
self.logger.info('Purging modules %s', ', '.join(module_names))
|
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
|
# we need this commit because reloading the registry would roll back
|
||||||
# our changes
|
# our changes
|
||||||
self.env.cr.commit() # pylint: disable=invalid-commit
|
self.env.cr.commit() # pylint: disable=invalid-commit
|
||||||
|
|
Loading…
Reference in New Issue