From 637db79fb07f73da896309684efbe4de356a14c6 Mon Sep 17 00:00:00 2001 From: Baptiste Pellarin Date: Mon, 9 Feb 2026 14:31:54 +0700 Subject: [PATCH 1/2] [19.0][MIG] bi_sql_editor: Prevent failure if default parent menu is not loaded. Issue occurs when upgrading from an old version of this module. `ValueError: External ID not found in the system: bi_sql_editor.menu_bi_sql_editor` --- bi_sql_editor/README.rst | 2 ++ bi_sql_editor/models/bi_sql_view.py | 4 +++- bi_sql_editor/readme/CONTRIBUTORS.md | 2 ++ bi_sql_editor/static/description/index.html | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bi_sql_editor/README.rst b/bi_sql_editor/README.rst index 23a719b5e7..f2d3249a6e 100644 --- a/bi_sql_editor/README.rst +++ b/bi_sql_editor/README.rst @@ -182,6 +182,8 @@ Contributors - Thien Vo thienvh@trobz.com +- Baptiste P. baptiste@newlogic.com + - This module is highly inspired by the work of - Onestein: (http://www.onestein.nl/) Module: diff --git a/bi_sql_editor/models/bi_sql_view.py b/bi_sql_editor/models/bi_sql_view.py index 8f33039757..33dfe9519c 100644 --- a/bi_sql_editor/models/bi_sql_view.py +++ b/bi_sql_editor/models/bi_sql_view.py @@ -116,7 +116,9 @@ class BiSQLView(models.Model): @api.model def _default_parent_menu_id(self): - return self.env.ref("bi_sql_editor.menu_bi_sql_editor") + return self.env.ref( + "bi_sql_editor.menu_bi_sql_editor", raise_if_not_found=False + ) parent_menu_id = fields.Many2one( string="Parent Odoo Menu", diff --git a/bi_sql_editor/readme/CONTRIBUTORS.md b/bi_sql_editor/readme/CONTRIBUTORS.md index 2f6bce1bbe..e92bb921c1 100644 --- a/bi_sql_editor/readme/CONTRIBUTORS.md +++ b/bi_sql_editor/readme/CONTRIBUTORS.md @@ -8,6 +8,8 @@ - Thien Vo +- Baptiste P. + - This module is highly inspired by the work of - Onestein: () Module: OCA/server-tools/bi_view_editor. Link: diff --git a/bi_sql_editor/static/description/index.html b/bi_sql_editor/static/description/index.html index 91c6e1ed2b..1830a7729e 100644 --- a/bi_sql_editor/static/description/index.html +++ b/bi_sql_editor/static/description/index.html @@ -510,6 +510,7 @@

Contributors

  • David James, WilldooIT (http://www.willdooit.com/)
  • Guillem Casassas guillem.casassas@forgeflow.com
  • Thien Vo thienvh@trobz.com
  • +
  • Baptiste P. baptiste@newlogic.com
  • This module is highly inspired by the work of
    • Onestein: (http://www.onestein.nl/) Module: OCA/server-tools/bi_view_editor. Link: From 7278b347ba2fdd455dc07a69b631329869eb36fb Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 9 Feb 2026 11:32:28 +0000 Subject: [PATCH 2/2] [BOT] post-merge updates --- README.md | 2 +- bi_sql_editor/README.rst | 2 +- bi_sql_editor/__manifest__.py | 2 +- bi_sql_editor/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 14f804af01..2e9f557cc4 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Available addons ---------------- addon | version | maintainers | summary --- | --- | --- | --- -[bi_sql_editor](bi_sql_editor/) | 19.0.1.0.0 | legalsylvain | BI Views builder, based on Materialized or Normal SQL Views +[bi_sql_editor](bi_sql_editor/) | 19.0.1.0.1 | legalsylvain | BI Views builder, based on Materialized or Normal SQL Views [report_qweb_element_page_visibility](report_qweb_element_page_visibility/) | 19.0.1.0.0 | | Report Qweb Element Page Visibility [report_xlsx](report_xlsx/) | 19.0.1.0.2 | | Base module to create xlsx report [report_xlsx_helper](report_xlsx_helper/) | 19.0.1.0.0 | | Report xlsx helpers diff --git a/bi_sql_editor/README.rst b/bi_sql_editor/README.rst index f2d3249a6e..13e0b73a87 100644 --- a/bi_sql_editor/README.rst +++ b/bi_sql_editor/README.rst @@ -11,7 +11,7 @@ BI SQL Editor !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:0c4fe10f6d3e9eb17c3d190497c09dabf179ce5ce821c17e017e819929127822 + !! source digest: sha256:9a7186167db4d48168e2f8f904d2fd9e6ef20d25fcf521a350050d270feb036e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/bi_sql_editor/__manifest__.py b/bi_sql_editor/__manifest__.py index ed29ee5bce..0e6c635079 100644 --- a/bi_sql_editor/__manifest__.py +++ b/bi_sql_editor/__manifest__.py @@ -5,7 +5,7 @@ { "name": "BI SQL Editor", "summary": "BI Views builder, based on Materialized or Normal SQL Views", - "version": "19.0.1.0.0", + "version": "19.0.1.0.1", "license": "AGPL-3", "category": "Reporting", "author": "GRAP,Odoo Community Association (OCA)", diff --git a/bi_sql_editor/static/description/index.html b/bi_sql_editor/static/description/index.html index 1830a7729e..08654260fa 100644 --- a/bi_sql_editor/static/description/index.html +++ b/bi_sql_editor/static/description/index.html @@ -372,7 +372,7 @@

      BI SQL Editor

      !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:0c4fe10f6d3e9eb17c3d190497c09dabf179ce5ce821c17e017e819929127822 +!! source digest: sha256:9a7186167db4d48168e2f8f904d2fd9e6ef20d25fcf521a350050d270feb036e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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

      This module extends the functionality of reporting, to support creation