Browse Source

import guard for report_xls

The dependency is indeed declared in __openerp__.py and will be
enforced. Odoo evaluates all python files, even for modules which are
not installed, and crashes if an unneeded dependency is needed.
pull/113/head
Leonardo Pistone 9 years ago
parent
commit
586ddbec23
  1. 4
      mis_builder/report/__init__.py

4
mis_builder/report/__init__.py

@ -22,5 +22,9 @@
#
##############################################################################
try:
from . import mis_builder_xls
except ImportError:
pass # this module is not installed
from . import report_mis_report_instance
Loading…
Cancel
Save