Files
account-financial-tools/account_asset_management_xls/report/__init__.py
Vincent Renaville a33d9b0dcf [FIX] protect import if module is not present (#818)
* [FIX] Protect import for uninstalled module
2019-05-15 09:04:54 +02:00

14 lines
430 B
Python

# The whole python file is ignored when the dependency is missing
# because it contains an old-style rml_parse report which would
# be loaded anyway
try:
from odoo.addons.report_xlsx_helper.report.abstract_report_xlsx \
import AbstractReportXlsx
except (ImportError, IOError) as err:
import logging
_logger = logging.getLogger(__name__)
_logger.debug(err)
else:
from . import account_asset_report_xls