[FIX][#1580]database_cleanup: Skip studio_customization module skipped for uninstalling
parent
c04fcba468
commit
9636bdb2a9
|
@ -64,7 +64,12 @@ class CleanupPurgeWizardModule(models.TransientModel):
|
||||||
def find(self):
|
def find(self):
|
||||||
res = []
|
res = []
|
||||||
IrModule = self.env['ir.module.module']
|
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):
|
if get_module_path(module.name, display_warning=False):
|
||||||
continue
|
continue
|
||||||
if module.state == 'uninstalled':
|
if module.state == 'uninstalled':
|
||||||
|
|
Loading…
Reference in New Issue