[CHG] Rename base_report_xlsx to report_xlsx and add xlsx report type in selection

This commit is contained in:
Adrien Peiffer (ACSONE)
2016-04-04 20:28:23 +02:00
parent ebba6c6816
commit b2a9f7d431
9 changed files with 13 additions and 18 deletions

View File

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

View File

@@ -15,7 +15,7 @@ An example of XLSX report for partners:
A python class ::
from openerp.addons.base_report_xlsx.report.report_xlsx import ReportXlsx
from openerp.addons.report_xlsx.report.report_xlsx import ReportXlsx
class partner_xlsx(ReportXlsx):
@@ -53,7 +53,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/reporting-engine/issues/new?body=module:%20base_report_xlsx%0Aversion:%209.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`here <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_xlsx%0Aversion:%209.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Credits
=======

View File

@@ -0,0 +1,11 @@
# -*- coding: utf-8 -*-
# Copyright 2015 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import api, fields, models
class IrActionsReportXml(models.Model):
_inherit = 'ir.actions.report.xml'
report_type = fields.Selection(selection_add=[("xlsx", "xlsx")])

View File

Before

Width:  |  Height:  |  Size: 9.2 KiB

After

Width:  |  Height:  |  Size: 9.2 KiB