From de0c7218607e35242208374635370435a1805fe2 Mon Sep 17 00:00:00 2001 From: Leonardo Pistone Date: Mon, 31 Aug 2015 17:09:19 +0200 Subject: [PATCH 1/3] financial report webkit: silence warning --- account_financial_report_webkit_xls/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/account_financial_report_webkit_xls/__init__.py b/account_financial_report_webkit_xls/__init__.py index 49db08a9d845..bd6a58877ba7 100644 --- a/account_financial_report_webkit_xls/__init__.py +++ b/account_financial_report_webkit_xls/__init__.py @@ -20,10 +20,9 @@ # ############################################################################## +from . import wizard + try: - from . import wizard from . import report except ImportError: - import logging - logging.getLogger('openerp.module').warning('''report_xls not available in - addons path. account_financial_report_webkit_xls will not be usable''') + pass # this module is not installed, and tries to import report_xls From 1e851ddc138d82e3dca63836c3e3a9c166205650 Mon Sep 17 00:00:00 2001 From: Leonardo Pistone Date: Mon, 31 Aug 2015 17:37:28 +0200 Subject: [PATCH 2/3] move line report: silence warning --- account_move_line_report_xls/__init__.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/account_move_line_report_xls/__init__.py b/account_move_line_report_xls/__init__.py index 0d4ee376f752..bca85422119a 100644 --- a/account_move_line_report_xls/__init__.py +++ b/account_move_line_report_xls/__init__.py @@ -20,11 +20,9 @@ # ############################################################################## +from . import account_move_line + try: - from . import account_move_line from . import report except ImportError: - import logging - logging.getLogger('openerp.module').\ - warning('''report_xls not available in addons path. - account_financial_report_webkit_xls will not be usable''') + pass # this module is not installed, and tries to import report_xls From 892e4828db8347a6cd32bd2e5fa20b53ee88f5ba Mon Sep 17 00:00:00 2001 From: Leonardo Pistone Date: Mon, 31 Aug 2015 17:44:45 +0200 Subject: [PATCH 3/3] journal report: silence warning --- account_journal_report_xls/__init__.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/account_journal_report_xls/__init__.py b/account_journal_report_xls/__init__.py index 6368e57dcd32..e6eb634ba8c5 100644 --- a/account_journal_report_xls/__init__.py +++ b/account_journal_report_xls/__init__.py @@ -20,11 +20,10 @@ # ############################################################################## +from . import account_journal +from . import wizard + try: - from . import account_journal - from . import wizard from . import report except ImportError: - import logging - logging.getLogger('openerp.module').warning('''report_xls not available in - addons path. account_financial_report_webkit_xls will not be usable''') + pass # this module is not installed, and tries to import report_xls