Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10.0 account financial report qweb fix import #274

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions account_financial_report_qweb/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Contributors
* Lorenzo Battistini <[email protected]>
* Julien Coux <[email protected]>
* Akim Juillerat <[email protected]>
* Jairo Llopis <[email protected]>

Much of the work in this module was done at a sprint in Sorrento, Italy in
April 2016.
Expand Down
7 changes: 5 additions & 2 deletions account_financial_report_qweb/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@
'report/templates/trial_balance.xml',
'view/account_view.xml'
],
'test': [
],
'external_dependencies': {
"python": [
"xlsxwriter",
],
},
'installable': True,
'application': True,
'auto_install': False,
Expand Down
8 changes: 7 additions & 1 deletion account_financial_report_qweb/report/abstract_report_xlsx.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
# Author: Julien Coux
# Copyright 2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
try:
import xlsxwriter
except ImportError: # pragma: no cover
import logging
_logger = logging.getLogger(__name__)
_logger.info("Missing dependency: xlsxwriter.")
_logger.debug("ImportError details:", exc_info=True)

from cStringIO import StringIO
import xlsxwriter
from odoo.addons.report_xlsx.report.report_xlsx import ReportXlsx


Expand Down