[FIX] edi: don't blow up in stand-alone openerp-web mode

bzr revid: xmo@openerp.com-20111117091712-xa94cuo92lwuliom
This commit is contained in:
Xavier Morel
2011-11-17 10:17:12 +01:00
parent 42cdd75942
commit 49d766fbcc
+8 -1
View File
@@ -18,10 +18,17 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import logging
import models
import edi_service
from models.edi import EDIMixin, edi_document
# web
import controllers
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""")