Browse Source

pylint: disable=old-api7-method-defined

pull/284/head
Luc De Meyer 6 years ago
parent
commit
f9f8e07583
  1. 1
      report_xlsx_helper/report/abstract_report_xlsx.py

1
report_xlsx_helper/report/abstract_report_xlsx.py

@ -18,6 +18,7 @@ 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(

Loading…
Cancel
Save