@ -18,6 +18,7 @@ class AbstractReportXlsx(ReportXlsx):
def create(self, cr, uid, ids, data, context=None):
if context.get('xlsx_export'):
self.env = api.Environment(cr, uid, context)
# pylint: disable=old-api7-method-defined
return self.create_xlsx_report(ids, data, None)
else:
return super(AbstractReportXlsx, self).create(