mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[IMP][base_report_xlsx] Protect import
This commit is contained in:
@@ -2,11 +2,18 @@
|
||||
# Copyright 2015 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
import xlsxwriter
|
||||
from openerp.report.report_sxw import report_sxw
|
||||
from openerp.api import Environment
|
||||
from cStringIO import StringIO
|
||||
|
||||
import logging
|
||||
_logger = logging.getLogger(__name__)
|
||||
|
||||
try:
|
||||
import xlsxwriter
|
||||
except ImportError:
|
||||
_logger.debug('Can not import xlsxwriter`.')
|
||||
|
||||
|
||||
class ReportXlsx(report_sxw):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user