Browse Source

pylint W8112(eval-referenced)

pull/204/head
Luc De Meyer 6 years ago
parent
commit
4cea2dab9d
  1. 3
      report_xlsx_helper/report/abstract_report_xlsx.py

3
report_xlsx_helper/report/abstract_report_xlsx.py

@ -18,7 +18,6 @@ class AbstractReportXlsx(ReportXlsx):
def create(self, cr, uid, ids, data, context=None): def create(self, cr, uid, ids, data, context=None):
if context.get('xlsx_export'): if context.get('xlsx_export'):
self.env = api.Environment(cr, uid, context) self.env = api.Environment(cr, uid, context)
# pylint: disable=old-api7-method-defined
return self.create_xlsx_report(ids, data, None) return self.create_xlsx_report(ids, data, None)
else: else:
return super(AbstractReportXlsx, self).create( return super(AbstractReportXlsx, self).create(
@ -555,7 +554,7 @@ class AbstractReportXlsx(ReportXlsx):
render_space['datetime'] = datetime render_space['datetime'] = datetime
# the use of eval is not a security thread as long as the # the use of eval is not a security thread as long as the
# col_specs template is defined in a python module # col_specs template is defined in a python module
return eval(val, render_space) # pylint: disable=W0123
return eval(val, render_space) # pylint: disable=W8112
@staticmethod @staticmethod
def _rowcol_to_cell(row, col, row_abs=False, col_abs=False): def _rowcol_to_cell(row, col, row_abs=False, col_abs=False):

Loading…
Cancel
Save