From 74a4054695b5ae2cb9721697258ae1a9514dde45 Mon Sep 17 00:00:00 2001 From: Romain Deheele Date: Mon, 3 Feb 2014 10:16:00 +0100 Subject: [PATCH] [FIX] add fix to avoid crash if report_xls in not available --- account_move_line_report_xls/__init__.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/account_move_line_report_xls/__init__.py b/account_move_line_report_xls/__init__.py index 1b34d850..d4b510be 100644 --- a/account_move_line_report_xls/__init__.py +++ b/account_move_line_report_xls/__init__.py @@ -20,5 +20,10 @@ # ############################################################################## -from . import account_move_line -from . import report +try: + from . import account_move_line + from . import report +except ImportError: + import logging + logging.getLogger('openerp.module').warning('report_xls not available in addons path. account_financial_report_webkit_xls will not be usable') +