diff --git a/README.md b/README.md index 14a8701e9d..b967a7bd65 100644 --- a/README.md +++ b/README.md @@ -35,9 +35,9 @@ addon | version | maintainers | summary [report_qweb_parameter](report_qweb_parameter/) | 15.0.1.0.0 | | Add new parameters for qweb templates in order to reduce field length and check minimal length [report_qweb_pdf_watermark](report_qweb_pdf_watermark/) | 15.0.1.0.0 | | Add watermarks to your QWEB PDF reports [report_wkhtmltopdf_param](report_wkhtmltopdf_param/) | 15.0.1.0.0 | | Add new parameters for a paper format to be used by wkhtmltopdf command as arguments. -[report_xlsx](report_xlsx/) | 15.0.1.1.3 | | Base module to create xlsx report -[report_xlsx_helper](report_xlsx_helper/) | 15.0.1.0.1 | | Report xlsx helpers -[report_xml](report_xml/) | 15.0.1.0.1 | | Allow to generate XML reports +[report_xlsx](report_xlsx/) | 15.0.1.1.4 | | Base module to create xlsx report +[report_xlsx_helper](report_xlsx_helper/) | 15.0.1.0.2 | | Report xlsx helpers +[report_xml](report_xml/) | 15.0.1.0.2 | | Allow to generate XML reports [sql_export](sql_export/) | 15.0.1.0.0 | | Export data in csv file with SQL requests [sql_export_excel](sql_export_excel/) | 15.0.1.0.0 | | Allow to export a sql query to an excel file. [sql_request_abstract](sql_request_abstract/) | 15.0.1.0.0 | [![legalsylvain](https://github.com/legalsylvain.png?size=30px)](https://github.com/legalsylvain) | Abstract Model to manage SQL Requests diff --git a/report_xlsx/README.rst b/report_xlsx/README.rst index a3462dc805..916c195c51 100644 --- a/report_xlsx/README.rst +++ b/report_xlsx/README.rst @@ -7,7 +7,7 @@ Base report xlsx !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:7691d7b6e1a19615d1e822b91dd4fc2717692ab1b8cd4ba14ecc1a27faba11e8 + !! source digest: sha256:3931fe2fe700ff24b8a7bce1dfbaeeb6a77fb529386dd4c3e30ec81326777f5e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png diff --git a/report_xlsx/__manifest__.py b/report_xlsx/__manifest__.py index e6d87db958..f8d1fbee7b 100644 --- a/report_xlsx/__manifest__.py +++ b/report_xlsx/__manifest__.py @@ -6,7 +6,7 @@ "author": "ACSONE SA/NV," "Creu Blanca," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/reporting-engine", "category": "Reporting", - "version": "15.0.1.1.3", + "version": "15.0.1.1.4", "development_status": "Mature", "license": "AGPL-3", "external_dependencies": {"python": ["xlsxwriter", "xlrd"]}, diff --git a/report_xlsx/static/description/index.html b/report_xlsx/static/description/index.html index f2ce828626..1d29c59619 100644 --- a/report_xlsx/static/description/index.html +++ b/report_xlsx/static/description/index.html @@ -367,7 +367,7 @@
This module provides a basic report class to generate xlsx report.
diff --git a/report_xlsx/tests/test_report.py b/report_xlsx/tests/test_report.py index a254294b1b..43026597e7 100644 --- a/report_xlsx/tests/test_report.py +++ b/report_xlsx/tests/test_report.py @@ -14,15 +14,26 @@ class TestReport(common.TransactionCase): - def setUp(self): - super().setUp() - report_object = self.env["ir.actions.report"] - self.xlsx_report = self.env["report.report_xlsx.abstract"].with_context( + @classmethod + def setUpClass(cls): + super().setUpClass() + # Remove this variable in v16 and put instead: + # from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT + DISABLED_MAIL_CONTEXT = { + "tracking_disable": True, + "mail_create_nolog": True, + "mail_create_nosubscribe": True, + "mail_notrack": True, + "no_reset_password": True, + } + cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT)) + report_object = cls.env["ir.actions.report"] + cls.xlsx_report = cls.env["report.report_xlsx.abstract"].with_context( active_model="res.partner" ) - self.report_name = "report_xlsx.partner_xlsx" - self.report = report_object._get_report_from_name(self.report_name) - self.docs = self.env["res.company"].search([], limit=1).partner_id + cls.report_name = "report_xlsx.partner_xlsx" + cls.report = report_object._get_report_from_name(cls.report_name) + cls.docs = cls.env["res.company"].search([], limit=1).partner_id def test_report(self): report = self.report diff --git a/report_xlsx_helper/README.rst b/report_xlsx_helper/README.rst index fec9d100ff..906b01c9e1 100644 --- a/report_xlsx_helper/README.rst +++ b/report_xlsx_helper/README.rst @@ -7,7 +7,7 @@ Report xlsx helpers !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:abd493fc9cbcc0422f0e975a8d74f84ff6c9bbf82e37a19bb83642b3fd325fcf + !! source digest: sha256:a126fa13fe703f685cf446afe0c9533c4c653d2bbd56e1d357679d65250e4057 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png diff --git a/report_xlsx_helper/__manifest__.py b/report_xlsx_helper/__manifest__.py index 3342e540a6..59e237937d 100644 --- a/report_xlsx_helper/__manifest__.py +++ b/report_xlsx_helper/__manifest__.py @@ -6,7 +6,7 @@ "author": "Noviat, Odoo Community Association (OCA)", "website": "https://github.com/OCA/reporting-engine", "category": "Reporting", - "version": "15.0.1.0.1", + "version": "15.0.1.0.2", "license": "AGPL-3", "depends": ["report_xlsx"], "development_status": "Mature", diff --git a/report_xlsx_helper/static/description/index.html b/report_xlsx_helper/static/description/index.html index b8034935d6..a0e706e044 100644 --- a/report_xlsx_helper/static/description/index.html +++ b/report_xlsx_helper/static/description/index.html @@ -367,7 +367,7 @@This module provides a set of tools to facilitate the creation of excel reports with format xlsx.
diff --git a/report_xlsx_helper/tests/test_report_xlsx_helper.py b/report_xlsx_helper/tests/test_report_xlsx_helper.py index 25c384edb2..b1af4ffa2d 100644 --- a/report_xlsx_helper/tests/test_report_xlsx_helper.py +++ b/report_xlsx_helper/tests/test_report_xlsx_helper.py @@ -7,20 +7,31 @@ class TestReportXlsxHelper(TransactionCase): - def setUp(self): - super(TestReportXlsxHelper, self).setUp() + @classmethod + def setUpClass(cls): + super(TestReportXlsxHelper, cls).setUpClass() + # Remove this variable in v16 and put instead: + # from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT + DISABLED_MAIL_CONTEXT = { + "tracking_disable": True, + "mail_create_nolog": True, + "mail_create_nosubscribe": True, + "mail_notrack": True, + "no_reset_password": True, + } + cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT)) today = date.today() - p1 = self.env.ref("base.res_partner_1") - p2 = self.env.ref("base.res_partner_2") + p1 = cls.env.ref("base.res_partner_1") + p2 = cls.env.ref("base.res_partner_2") p1.date = today p2.date = today - self.partners = p1 + p2 + cls.partners = p1 + p2 ctx = { "report_name": "report_xlsx_helper.test_partner_xlsx", "active_model": "res.partner", - "active_ids": self.partners.ids, + "active_ids": cls.partners.ids, } - self.report = self.env["ir.actions.report"].with_context(**ctx) + cls.report = cls.env["ir.actions.report"].with_context(**ctx) def test_report_xlsx_helper(self): report_xls = self.report._render_xlsx(None, None) diff --git a/report_xml/README.rst b/report_xml/README.rst index 730f069951..6ab8bc2b0b 100644 --- a/report_xml/README.rst +++ b/report_xml/README.rst @@ -7,7 +7,7 @@ XML Reports !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:da87d0036e398c3d3b1b2bac99700ee51751a35f84b56509d44abff6a727abb4 + !! source digest: sha256:9cd1ff8256076157cca6d71a4913d2d5b0fea3ec858d7a4945109b1e185db5a7 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png diff --git a/report_xml/__manifest__.py b/report_xml/__manifest__.py index 049ba93d21..2046f5e3c7 100644 --- a/report_xml/__manifest__.py +++ b/report_xml/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (https://www.gnuorg/licenses/agpl.html). { "name": "XML Reports", - "version": "15.0.1.0.1", + "version": "15.0.1.0.2", "category": "Reporting", "website": "https://github.com/OCA/reporting-engine", "development_status": "Production/Stable", diff --git a/report_xml/static/description/index.html b/report_xml/static/description/index.html index 3ebf017ad1..4e1498271f 100644 --- a/report_xml/static/description/index.html +++ b/report_xml/static/description/index.html @@ -367,7 +367,7 @@This module was written to extend the functionality of the reporting engine to diff --git a/report_xml/tests/test_report_xml.py b/report_xml/tests/test_report_xml.py index b92ed9213a..39e1b0c1b1 100644 --- a/report_xml/tests/test_report_xml.py +++ b/report_xml/tests/test_report_xml.py @@ -7,6 +7,20 @@ class TestXmlReport(common.TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + # Remove this variable in v16 and put instead: + # from odoo.addons.base.tests.common import DISABLED_MAIL_CONTEXT + DISABLED_MAIL_CONTEXT = { + "tracking_disable": True, + "mail_create_nolog": True, + "mail_create_nosubscribe": True, + "mail_notrack": True, + "no_reset_password": True, + } + cls.env = cls.env(context=dict(cls.env.context, **DISABLED_MAIL_CONTEXT)) + def test_xml(self): report_object = self.env["ir.actions.report"] report_name = "report_xml.demo_report_xml_view"