Skip to content

[19.0][MIG] sql export: Migration to 19.0#1128

Open
feketemihai wants to merge 113 commits intoOCA:19.0from
NextERP-Romania:19.0-mig-sql_export
Open

[19.0][MIG] sql export: Migration to 19.0#1128
feketemihai wants to merge 113 commits intoOCA:19.0from
NextERP-Romania:19.0-mig-sql_export

Conversation

@feketemihai
Copy link
Copy Markdown
Member

No description provided.

florian-dacosta and others added 30 commits February 8, 2026 11:28
Add rollback after executing query as a double security with blacklist terms

add known issue in readme
[FIX] encoding with mogrify

[FIX] hide placeholder
Currently translated at 100,0% (50 of 50 strings)

Translation: server-tools-10.0/server-tools-10.0-sql_export
Translate-URL: https://translation.odoo-community.org/projects/server-tools-10-0/server-tools-10-0-sql_export/de/
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-12.0/server-tools-12.0-sql_export
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-sql_export/
Currently translated at 100.0% (49 of 49 strings)

Translation: server-tools-12.0/server-tools-12.0-sql_export
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-sql_export/zh_CN/
Currently translated at 100.0% (49 of 49 strings)

Translation: server-tools-12.0/server-tools-12.0-sql_export
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-sql_export/pt_BR/
Co-Authored-By: David Beal <david.beal@akretion.com>
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-12.0/server-tools-12.0-sql_export
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-sql_export/
mymage and others added 17 commits February 8, 2026 11:28
Currently translated at 100.0% (67 of 67 strings)

Translation: reporting-engine-18.0/reporting-engine-18.0-sql_export
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-sql_export/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-18.0/reporting-engine-18.0-sql_export
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-sql_export/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-18.0/reporting-engine-18.0-sql_export
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-sql_export/
This may be quite usefull to detect osbolete queries not used anymore in order to remove it
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-18.0/reporting-engine-18.0-sql_export
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-sql_export/
Currently translated at 100.0% (67 of 67 strings)

Translation: reporting-engine-18.0/reporting-engine-18.0-sql_export
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-sql_export/it/
Currently translated at 64.1% (43 of 67 strings)

Translation: reporting-engine-18.0/reporting-engine-18.0-sql_export
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-sql_export/tr/
Currently translated at 100.0% (67 of 67 strings)

Translation: reporting-engine-18.0/reporting-engine-18.0-sql_export
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-sql_export/tr/
@feketemihai feketemihai mentioned this pull request Feb 8, 2026
20 tasks
@feketemihai feketemihai force-pushed the 19.0-mig-sql_export branch 2 times, most recently from 78fa536 to bf38b72 Compare February 8, 2026 14:44
Comment thread sql_export/wizard/wizard_file.py Outdated
@lmignon
Copy link
Copy Markdown
Contributor

lmignon commented Apr 15, 2026

/ocabot migrate sql_export

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @lmignon. Your command failed:

Invalid command: migrate.

Ocabot commands

  • ocabot merge major|minor|patch|nobump
  • ocabot rebase
  • ocabot migration {MODULE_NAME}

More information

@lmignon
Copy link
Copy Markdown
Contributor

lmignon commented Apr 15, 2026

/ocabot migration sql_export

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Apr 15, 2026
Copy link
Copy Markdown
Contributor

@lmignon lmignon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the migration. To minimize the diff in the migration process you should load the demo data into the setUpClass method of your tests

super().setUpClass()
cls.sql_export_obj = cls.env["sql.export"]
cls.wizard_obj = cls.env["sql.file.wizard"]
cls.sql_export_partner = cls.sql_export_obj.create(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@feketemihai The setup could be simplified by explicitely loading the demo file....

from odoo.tools import convert


@classmethod
def setUpClass():
    super().setUpClass()
    ....
    convert.convert_file(env=cls.env, module='sql_export', filename='demo/sql_export.xml', idref=None, mode='init')
    cls.sql_export_partner = self.env.ref("sql_export.sql_export_partner")
    ......

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.