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