diff --git a/account_financial_report_webkit_xls/__init__.py b/account_financial_report_webkit_xls/__init__.py index d96f4819..db43eacb 100644 --- a/account_financial_report_webkit_xls/__init__.py +++ b/account_financial_report_webkit_xls/__init__.py @@ -21,4 +21,9 @@ ############################################################################## from . import wizard -from . import report +try: + 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') + diff --git a/account_move_line_report_xls/__init__.py b/account_move_line_report_xls/__init__.py index 728de535..75e3e519 100644 --- a/account_move_line_report_xls/__init__.py +++ b/account_move_line_report_xls/__init__.py @@ -21,4 +21,9 @@ ############################################################################## from . import account_move_line -from . import report +try: + 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') +