From b959f8c7560522ba34dfc7bc33bc24b3231c2eb3 Mon Sep 17 00:00:00 2001 From: Ruchir Shukla Date: Mon, 5 Aug 2019 17:05:20 +0530 Subject: [PATCH] [FIX][#1580]database_cleanup: Skip studio_customization module skipped for uninstalling --- database_cleanup/models/purge_modules.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/database_cleanup/models/purge_modules.py b/database_cleanup/models/purge_modules.py index e8304d99d..0cb799d22 100644 --- a/database_cleanup/models/purge_modules.py +++ b/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':