From 9093e447857e9c6848bca7b7e4f7287399219ed9 Mon Sep 17 00:00:00 2001 From: PSala Date: Fri, 8 Nov 2024 11:30:37 +0100 Subject: [PATCH] Esure to install only not installed deps --- destral/openerp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/destral/openerp.py b/destral/openerp.py index 833e108..9d18c3f 100644 --- a/destral/openerp.py +++ b/destral/openerp.py @@ -145,10 +145,10 @@ def install_module(self, module, with_test_depends=False): logger.info("Including extra dependencies:\n%s" % '\n'.join(extra_modules)) extra_modules_ids = module_obj.search( txn.cursor, DEFAULT_USER, - [('name', 'in', extra_modules)], + [('name', 'in', extra_modules), ('state', '!=', 'installed')], ) if len(extra_modules_ids) != len(extra_modules): - logger.warning("Some extra dependencies were not found") + logger.warning("Some extra dependencies were not found or already installed") module_ids.extend(extra_modules_ids)