Browse Source

[IMP] mis_builder: log conditional style evaluation errors

pull/86/head
Stéphane Bidoul 10 years ago
parent
commit
7c3f0a53e6
  1. 6
      mis_builder/models/mis_builder.py

6
mis_builder/models/mis_builder.py

@ -23,6 +23,7 @@
##############################################################################
from datetime import datetime, timedelta
import logging
import re
import traceback
@ -33,6 +34,8 @@ from openerp.tools.safe_eval import safe_eval
from .aep import AccountingExpressionProcessor as AEP
_logger = logging.getLogger(__name__)
class AutoStruct(object):
@ -515,7 +518,8 @@ class MisReportInstancePeriod(models.Model):
if kpi.css_style:
kpi_style = safe_eval(kpi.css_style, localdict)
except:
# TODO: log warning
_logger.warning("error evaluating css stype expression %s",
kpi.css_style, exc_info=True)
kpi_style = None
drilldown = (kpi_val is not None and

Loading…
Cancel
Save