Browse Source

[10.0] Fix import report_xlsx_helper without try-except

pull/475/head
Tonow-c2c 6 years ago
parent
commit
2e01f9a4a0
  1. 6
      account_move_line_report_xls/models/account_move_line.py

6
account_move_line_report_xls/models/account_move_line.py

@ -3,9 +3,15 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, models from odoo import api, models
import logging
_logger = logging.getLogger(__name__)
try:
from odoo.addons.report_xlsx_helper.report.abstract_report_xlsx \ from odoo.addons.report_xlsx_helper.report.abstract_report_xlsx \
import AbstractReportXlsx import AbstractReportXlsx
_render = AbstractReportXlsx._render _render = AbstractReportXlsx._render
except (ImportError, IOError) as err:
_logger.debug(err)
class AccountMoveLine(models.Model): class AccountMoveLine(models.Model):

Loading…
Cancel
Save