diff --git a/addons/edi/__init__.py b/addons/edi/__init__.py index 3aa7f74ebd7..f0f96a936ec 100644 --- a/addons/edi/__init__.py +++ b/addons/edi/__init__.py @@ -18,10 +18,17 @@ # along with this program. If not, see . # ############################################################################## +import logging import models import edi_service from models.edi import EDIMixin, edi_document # web -import controllers \ No newline at end of file +try: + import controllers +except ImportError: + logging.getLogger('init.load').warn( + """Could not load openerp-web section of EDI, EDI will not behave correctly + +To fix, launch openerp-web in embedded mode""")