Browse Source

Revert "[SEC] report_xls: fix unsafe eval"

This reverts commit b154dde083.
pull/46/head
Alexandre Fayolle 9 years ago
parent
commit
551c2b1775
  1. 3
      report_xls/report_xls.py

3
report_xls/report_xls.py

@ -26,7 +26,6 @@ import cStringIO
from datetime import datetime
from openerp.osv.fields import datetime as datetime_field
from openerp.tools import DEFAULT_SERVER_DATETIME_FORMAT
from openerp.tools.safe_eval import safe_eval
import inspect
from types import CodeType
from openerp.report.report_sxw import report_sxw
@ -163,7 +162,7 @@ class report_xls(report_sxw):
row = col_specs[wanted][rowtype][:]
for i in range(len(row)):
if isinstance(row[i], CodeType):
row[i] = safe_eval(row[i], render_space)
row[i] = eval(row[i], render_space)
row.insert(0, wanted)
return row

Loading…
Cancel
Save