diff --git a/account_financial_report_qweb/report/__init__.py b/account_financial_report_qweb/report/__init__.py index 111bf4f4..43e54610 100644 --- a/account_financial_report_qweb/report/__init__.py +++ b/account_financial_report_qweb/report/__init__.py @@ -4,12 +4,19 @@ # © 2016 Julien Coux (Camptocamp) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).- -from . import abstract_report_xlsx -from . import aged_partner_balance -from . import aged_partner_balance_xlsx -from . import general_ledger -from . import general_ledger_xlsx -from . import open_items -from . import open_items_xlsx -from . import trial_balance -from . import trial_balance_xlsx +import logging +_logger = logging.getLogger(__name__) +try: + from . import abstract_report_xlsx + from . import aged_partner_balance + from . import aged_partner_balance_xlsx + from . import general_ledger + from . import general_ledger_xlsx + from . import open_items + from . import open_items_xlsx + from . import trial_balance + from . import trial_balance_xlsx +except ImportError: + _logger.info("ImportError raised while loading module.") + _logger.debug("ImportError details:", exc_info=True) + ReportXlsx = object