OCA reporting engine fork for dev and update.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
510 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2015 ACSONE SA/NV (<http://acsone.eu>)
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from openerp import models, api
  5. class IrActionsReportXml(models.Model):
  6. _inherit = 'ir.actions.report.xml'
  7. @api.model
  8. def _check_selection_field_value(self, field, value):
  9. if field == 'report_type' and value == 'xlsx':
  10. return
  11. return super(IrActionsReportXml, self).\
  12. _check_selection_field_value(field, value)