summaryrefslogtreecommitdiff
path: root/odoo/tools/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'odoo/tools/config.py')
-rw-r--r--odoo/tools/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/odoo/tools/config.py b/odoo/tools/config.py
index 7c81652b68f..a4cbd9a0439 100644
--- a/odoo/tools/config.py
+++ b/odoo/tools/config.py
@@ -458,12 +458,13 @@ class configmanager(object):
odoo.conf.server_wide_modules = ['web','web_kanban']
def _is_addons_path(self, path):
+ from odoo.modules.module import MANIFEST_NAMES
for f in os.listdir(path):
modpath = os.path.join(path, f)
if os.path.isdir(modpath):
def hasfile(filename):
return os.path.isfile(os.path.join(modpath, filename))
- if hasfile('__init__.py') and (hasfile('__openerp__.py') or hasfile('__terp__.py')):
+ if hasfile('__init__.py') and any(hasfile(mname) for mname in MANIFEST_NAMES):
return True
return False