From 9874892b97c6fd93c94465a7d0df6e434c05d909 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 13 Sep 2016 15:04:58 +0200 Subject: [PATCH] [FIX] module#get_module_path() does not check the manifest's presence (closes #13467) --- openerp/modules/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/modules/module.py b/openerp/modules/module.py index 8a72fd6f954..e9e643001f0 100644 --- a/openerp/modules/module.py +++ b/openerp/modules/module.py @@ -121,7 +121,7 @@ def get_module_path(module, downloaded=False, display_warning=True): """ initialize_sys_path() for adp in ad_paths: - if os.path.exists(opj(adp, module)) or os.path.exists(opj(adp, '%s.zip' % module)): + if os.path.exists(opj(adp, module, MANIFEST)) or os.path.exists(opj(adp, '%s.zip' % module)): return opj(adp, module) if downloaded: