From b959f8c7560522ba34dfc7bc33bc24b3231c2eb3 Mon Sep 17 00:00:00 2001 From: Ruchir Shukla Date: Mon, 5 Aug 2019 17:05:20 +0530 Subject: [PATCH 1/3] [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': From 71b811676fce229a467a9fe0804c3468e231c741 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Sun, 11 Aug 2019 10:27:21 +0000 Subject: [PATCH 2/3] [UPD] Update database_cleanup.pot --- database_cleanup/i18n/database_cleanup.pot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database_cleanup/i18n/database_cleanup.pot b/database_cleanup/i18n/database_cleanup.pot index 3c537ea90..d7fd57b00 100644 --- a/database_cleanup/i18n/database_cleanup.pot +++ b/database_cleanup/i18n/database_cleanup.pot @@ -286,7 +286,7 @@ msgid "No dangling menu entries found" msgstr "" #. module: database_cleanup -#: code:addons/database_cleanup/models/purge_modules.py:78 +#: code:addons/database_cleanup/models/purge_modules.py:83 #, python-format msgid "No modules found to purge" msgstr "" From 207419565883701cc69b1960c276726440f787e0 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 11 Aug 2019 10:39:24 +0000 Subject: [PATCH 3/3] database_cleanup 12.0.1.0.1 --- database_cleanup/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database_cleanup/__openerp__.py b/database_cleanup/__openerp__.py index cdd379c7e..7c535deca 100644 --- a/database_cleanup/__openerp__.py +++ b/database_cleanup/__openerp__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Database cleanup', - 'version': '12.0.1.0.0', + 'version': '12.0.1.0.1', 'author': "Therp BV,Odoo Community Association (OCA)", 'depends': ['base'], 'license': 'AGPL-3',