Browse Source

[FIX][#1580]database_cleanup: Skip studio_customization module skipped for uninstalling

12.0
Ruchir Shukla 5 years ago
committed by OCA-git-bot
parent
commit
b959f8c756
  1. 7
      database_cleanup/models/purge_modules.py

7
database_cleanup/models/purge_modules.py

@ -64,7 +64,12 @@ class CleanupPurgeWizardModule(models.TransientModel):
def find(self):
res = []
IrModule = self.env['ir.module.module']
for module in IrModule.search([('to_buy', '=', False)]):
for module in IrModule.search(
[
('to_buy', '=', False),
('name', '!=', 'studio_customization')
]
):
if get_module_path(module.name, display_warning=False):
continue
if module.state == 'uninstalled':

Loading…
Cancel
Save