Browse Source

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

pull/38/head
Adrien Peiffer (ACSONE) 9 years ago
parent
commit
b2a9f7d431
  1. 16
      base_report_xlsx/models/ir_report.py
  2. 4
      report_xlsx/README.rst
  3. 0
      report_xlsx/__init__.py
  4. 0
      report_xlsx/__openerp__.py
  5. 0
      report_xlsx/models/__init__.py
  6. 11
      report_xlsx/models/ir_report.py
  7. 0
      report_xlsx/report/__init__.py
  8. 0
      report_xlsx/report/report_xlsx.py
  9. 0
      report_xlsx/static/description/icon.png

16
base_report_xlsx/models/ir_report.py

@ -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)

4
base_report_xlsx/README.rst → report_xlsx/README.rst

@ -15,7 +15,7 @@ An example of XLSX report for partners:
A python class :: 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): class partner_xlsx(ReportXlsx):
@ -53,7 +53,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_. 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. 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 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 Credits
======= =======

0
base_report_xlsx/__init__.py → report_xlsx/__init__.py

0
base_report_xlsx/__openerp__.py → report_xlsx/__openerp__.py

0
base_report_xlsx/models/__init__.py → report_xlsx/models/__init__.py

11
report_xlsx/models/ir_report.py

@ -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")])

0
base_report_xlsx/report/__init__.py → report_xlsx/report/__init__.py

0
base_report_xlsx/report/report_xlsx.py → report_xlsx/report/report_xlsx.py

0
base_report_xlsx/static/description/icon.png → report_xlsx/static/description/icon.png

Before

Width: 128  |  Height: 128  |  Size: 9.2 KiB

After

Width: 128  |  Height: 128  |  Size: 9.2 KiB

Loading…
Cancel
Save