From f320c8633fce4088f3094c4e078f720f034bb868 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Tue, 14 Jan 2014 20:31:12 +0100 Subject: [PATCH] check report_xls --- account_journal_report_xls/__init__.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/account_journal_report_xls/__init__.py b/account_journal_report_xls/__init__.py index 87345508..aada0b39 100644 --- a/account_journal_report_xls/__init__.py +++ b/account_journal_report_xls/__init__.py @@ -20,8 +20,12 @@ # ############################################################################## -from . import account_journal -from . import wizard -from . import report +try: + from . import account_journal + from . import wizard + 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') # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: