pylint: disable=old-api7-method-defined

pull/361/head
Luc De Meyer 2018-08-10 17:18:40 +02:00 committed by kongrattapong
parent 41de759332
commit ea13f1bb35
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ from odoo.exceptions import UserError
class AbstractReportXlsx(ReportXlsx):
# pylint: disable=old-api7-method-defined
def create(self, cr, uid, ids, data, context=None):
if context.get('xlsx_export'):
self.env = api.Environment(cr, uid, context)