Browse Source

Merge PR #1632 into 12.0

Signed-off-by pedrobaeza
12.0
OCA-git-bot 5 years ago
parent
commit
5157720da4
  1. 2
      database_cleanup/__openerp__.py
  2. 2
      database_cleanup/i18n/database_cleanup.pot
  3. 7
      database_cleanup/models/purge_modules.py

2
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',

2
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 ""

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