From 78fa4a46b99ff123ab41507d15a9846e2a9e6184 Mon Sep 17 00:00:00 2001 From: mariadforgeflow Date: Thu, 2 Dec 2021 13:06:44 +0100 Subject: [PATCH] [MIG] sql_export: Migration to 15.0 --- sql_export/README.rst | 14 +++++++------- sql_export/__manifest__.py | 2 +- sql_export/i18n/sql_export.pot | 2 +- sql_export/readme/ROADMAP.rst | 2 -- sql_export/static/description/index.html | 8 ++++---- sql_export/tests/test_sql_query.py | 11 ++++++----- 6 files changed, 19 insertions(+), 20 deletions(-) diff --git a/sql_export/README.rst b/sql_export/README.rst index 04bc7a291..538e403d6 100644 --- a/sql_export/README.rst +++ b/sql_export/README.rst @@ -14,13 +14,13 @@ SQL Export :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github - :target: https://github.com/OCA/server-tools/tree/14.0/sql_export - :alt: OCA/server-tools + :target: https://github.com/OCA/reporting-engine/tree/15.0/sql_export + :alt: OCA/reporting-engine .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-sql_export + :target: https://translation.odoo-community.org/projects/reporting-engine-15-0/reporting-engine-15-0-sql_export :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/149/14.0 + :target: https://runbot.odoo-community.org/runbot/149/15.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -74,10 +74,10 @@ See sql_request_abstract module to fix this issue. Bug Tracker =========== -Bugs are tracked on `GitHub Issues `_. +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. @@ -115,6 +115,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/server-tools `_ 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/sql_export/__manifest__.py b/sql_export/__manifest__.py index 55e9d4f55..1d13c0996 100644 --- a/sql_export/__manifest__.py +++ b/sql_export/__manifest__.py @@ -4,7 +4,7 @@ { "name": "SQL Export", - "version": "14.0.1.1.0", + "version": "15.0.1.0.0", "author": "Akretion,Odoo Community Association (OCA)", "website": "https://github.com/OCA/reporting-engine", "license": "AGPL-3", diff --git a/sql_export/i18n/sql_export.pot b/sql_export/i18n/sql_export.pot index f6dc71e25..8753ed013 100644 --- a/sql_export/i18n/sql_export.pot +++ b/sql_export/i18n/sql_export.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/sql_export/readme/ROADMAP.rst b/sql_export/readme/ROADMAP.rst index 21c6fa6aa..22dfa4c8b 100644 --- a/sql_export/readme/ROADMAP.rst +++ b/sql_export/readme/ROADMAP.rst @@ -14,5 +14,3 @@ See sql_request_abstract module to fix this issue. * checking SQL request by execution and rollback is disabled in this module since variables features has been introduced. This can be fixed by overloading _prepare_request_check_execution() function. - -* Move modules sql_request_abstract and sql_export to oca/reporting-engine for version 15 diff --git a/sql_export/static/description/index.html b/sql_export/static/description/index.html index b4650d977..71ce11884 100644 --- a/sql_export/static/description/index.html +++ b/sql_export/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/reporting-engine Translate me on Weblate Try me on Runbot

Allow to export data in csv files FROM sql requests. There are some restrictions in the sql query, you can only read datas. No update, deletion or creation are possible. @@ -421,10 +421,10 @@ overloading _prepare_request_check_execution() function.

Bug Tracker

-

Bugs are tracked on GitHub Issues. +

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.

@@ -457,7 +457,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

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/server-tools 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/sql_export/tests/test_sql_query.py b/sql_export/tests/test_sql_query.py index db1cdd4ea..65e851199 100644 --- a/sql_export/tests/test_sql_query.py +++ b/sql_export/tests/test_sql_query.py @@ -11,11 +11,12 @@ from odoo.tests.common import TransactionCase, tagged @tagged("post_install", "-at_install") class TestExportSqlQuery(TransactionCase): - def setUp(self): - super(TestExportSqlQuery, self).setUp() - self.sql_export_obj = self.env["sql.export"] - self.wizard_obj = self.env["sql.file.wizard"] - self.sql_report_demo = self.env.ref("sql_export.sql_export_partner") + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.sql_export_obj = cls.env["sql.export"] + cls.wizard_obj = cls.env["sql.file.wizard"] + cls.sql_report_demo = cls.env.ref("sql_export.sql_export_partner") def test_sql_query(self): wizard = self.wizard_obj.create(