mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[CHG] Rename base_report_xlsx to report_xlsx and add xlsx report type in selection
This commit is contained in:
@@ -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)
|
||||
@@ -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
|
||||
=======
|
||||
11
report_xlsx/models/ir_report.py
Normal file
11
report_xlsx/models/ir_report.py
Normal 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")])
|
||||
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.2 KiB |
Reference in New Issue
Block a user