From adb71709e1f98797f2a14ee9cd57688b506a96d2 Mon Sep 17 00:00:00 2001 From: Rod Schouteden Date: Tue, 1 Oct 2019 10:25:59 +0200 Subject: [PATCH] [MIG] report_xlsx: Migration to 13.0 --- report_xlsx/README.rst | 11 ++++++----- report_xlsx/__manifest__.py | 2 +- report_xlsx/models/ir_report.py | 2 +- report_xlsx/readme/CONTRIBUTORS.rst | 1 + report_xlsx/report/report_partner_xlsx.py | 1 + report_xlsx/static/description/index.html | 9 +++++---- 6 files changed, 15 insertions(+), 11 deletions(-) diff --git a/report_xlsx/README.rst b/report_xlsx/README.rst index b8a04eb2..1934a7f3 100644 --- a/report_xlsx/README.rst +++ b/report_xlsx/README.rst @@ -14,13 +14,13 @@ Base report xlsx :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github - :target: https://github.com/OCA/reporting-engine/tree/12.0/report_xlsx + :target: https://github.com/OCA/reporting-engine/tree/13.0/report_xlsx :alt: OCA/reporting-engine .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-report_xlsx + :target: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-report_xlsx :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/143/12.0 + :target: https://runbot.odoo-community.org/runbot/143/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -85,7 +85,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -107,6 +107,7 @@ Contributors * Enric Tobella * Graeme Gellatly * Cristian Salamea +* Rod Schouteden Maintainers ~~~~~~~~~~~ @@ -121,6 +122,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/reporting-engine `_ project on GitHub. +This module is part of the `OCA/reporting-engine `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/report_xlsx/__manifest__.py b/report_xlsx/__manifest__.py index f46dea30..9687c218 100644 --- a/report_xlsx/__manifest__.py +++ b/report_xlsx/__manifest__.py @@ -9,7 +9,7 @@ 'Odoo Community Association (OCA)', 'website': "https://github.com/oca/reporting-engine", 'category': 'Reporting', - 'version': '12.0.1.0.1', + 'version': '13.0.1.0.0', 'license': 'AGPL-3', 'external_dependencies': { 'python': [ diff --git a/report_xlsx/models/ir_report.py b/report_xlsx/models/ir_report.py index da499c8c..4e1edff6 100644 --- a/report_xlsx/models/ir_report.py +++ b/report_xlsx/models/ir_report.py @@ -15,7 +15,7 @@ class ReportAction(models.Model): report_model_name = "report.%s" % self.report_name report_model = self.env.get(report_model_name) if report_model is None: - raise UserError(_("%s model was not found" % report_model_name)) + raise UserError(_('%s model was not found') % report_model_name) return report_model.with_context(active_model=self.model).create_xlsx_report( # noqa docids, data ) diff --git a/report_xlsx/readme/CONTRIBUTORS.rst b/report_xlsx/readme/CONTRIBUTORS.rst index f289ee23..9e5dff7e 100644 --- a/report_xlsx/readme/CONTRIBUTORS.rst +++ b/report_xlsx/readme/CONTRIBUTORS.rst @@ -4,3 +4,4 @@ * Enric Tobella * Graeme Gellatly * Cristian Salamea +* Rod Schouteden diff --git a/report_xlsx/report/report_partner_xlsx.py b/report_xlsx/report/report_partner_xlsx.py index e4fe715a..ca259fd5 100644 --- a/report_xlsx/report/report_partner_xlsx.py +++ b/report_xlsx/report/report_partner_xlsx.py @@ -7,6 +7,7 @@ from odoo import models class PartnerXlsx(models.AbstractModel): _name = 'report.report_xlsx.partner_xlsx' _inherit = 'report.report_xlsx.abstract' + _description = 'Partner XLSX Report' def generate_xlsx_report(self, workbook, data, partners): for obj in partners: diff --git a/report_xlsx/static/description/index.html b/report_xlsx/static/description/index.html index f2463683..936d3fec 100644 --- a/report_xlsx/static/description/index.html +++ b/report_xlsx/static/description/index.html @@ -3,7 +3,7 @@ - + Base report xlsx