Skip to content

[20.0][MIG] bi_sql_editor: Migration to 20.0 - #8

Merged
alan196 merged 147 commits into
Jarsa:20.0from
Jarsa-dev:20.0-mig-bi_sql_editor
Nov 30, 2026
Merged

alan196 merged 147 commits into
Jarsa:20.0from
Jarsa-dev:20.0-mig-bi_sql_editor

Conversation

@alan196

@alan196 alan196 commented Nov 30, 2026

Copy link
Copy Markdown

Trae a Jarsa/reporting-engine 20.0 la migración de OCA (OCA#1224), con cherry-pick sobre jarsa/20.0. Se quita test-requirements.txt porque sql_request_abstract ya está en 20.0.

🤖 Generated with Claude Code

@jarsabot

Copy link
Copy Markdown
    **WARNING**: Could not link to Odoo task. Record ID not found in the title of the MR, supported formats:
{ record type }#{ number }

Available types: 'task#', 't#' (case insensitive)

Examples:

  • task#123

  • i#123

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.40%. Comparing base (f77186f) to head (a24e6b6).

Files with missing lines Patch % Lines
bi_sql_editor/hooks.py 25.00% 3 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##             20.0       #8       +/-   ##
===========================================
+ Coverage   66.53%   77.40%   +10.86%     
===========================================
  Files          25       33        +8     
  Lines         786     1310      +524     
  Branches       85      162       +77     
===========================================
+ Hits          523     1014      +491     
+ Misses        245      242        -3     
- Partials       18       54       +36     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

legalsylvain and others added 28 commits November 30, 2026 16:00
…fresh date time on the action name of each sql materialized view
Fix error '... is not a table or foreign table'
Fix view (colors + oe_highlight)
Fix tests
Fix README + manifest
Fix back to draft
Fix cron call + default values
Use Postgres version 9.6 for travis builds
* [IMP] is_materialized field non readonly on sql_valid state ; [FIX] block possibility to set indexes on non materialized view

* [FIX] set domain_force, group_ids readonly if state > sql_valid

* [IMP] better display of the field group_ids

* [IMP] possibility to reorder menu items from sql views

* [IMP] Do not warn user when setting sql view to draft if state is sql_valid

* [REF]

* [FIX] Set Date of the first execution in the action name
[UPD] Update bi_sql_editor.pot

[UPD] Update bi_sql_editor.pot

[UPD] Update bi_sql_editor.pot
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
bi_sql_editor 12.0.1.1.0

[UPD] README.rst

[UPD] README.rst
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-12.0/reporting-engine-12.0-bi_sql_editor
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-bi_sql_editor/
Currently translated at 29.1% (32 of 110 strings)

Translation: reporting-engine-12.0/reporting-engine-12.0-bi_sql_editor
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-bi_sql_editor/de/
jabelchi and others added 27 commits November 30, 2026 16:00
Currently translated at 66.8% (97 of 145 strings)

Translation: reporting-engine-18.0/reporting-engine-18.0-bi_sql_editor
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-bi_sql_editor/ca/
Currently translated at 93.7% (136 of 145 strings)

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

Translation: reporting-engine-18.0/reporting-engine-18.0-bi_sql_editor
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-bi_sql_editor/ca/
…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`
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-19.0/reporting-engine-19.0-bi_sql_editor
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-19-0/reporting-engine-19-0-bi_sql_editor/
Currently translated at 100.0% (145 of 145 strings)

Translation: reporting-engine-19.0/reporting-engine-19.0-bi_sql_editor
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-19-0/reporting-engine-19-0-bi_sql_editor/sv/
Currently translated at 100.0% (145 of 145 strings)

Translation: reporting-engine-19.0/reporting-engine-19.0-bi_sql_editor
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-19-0/reporting-engine-19-0-bi_sql_editor/da/
…o see data detail, when clicking on an item in a tree view

- update / create tree and form view once all the models are loaded, to avoid errors because fields are not available

(cherry picked from commit b2d4e1f)

Assisted-by: Claude Fable 5
(cherry picked from commit 58aa10b)

Assisted-by: Claude Fable 5
…ting is enabled

(cherry picked from commit 53d0a05)
(cherry picked from commit 887df41)

Assisted-by: Claude Fable 5
(cherry picked from commit f138255)

Assisted-by: Claude Fable 5
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-19.0/reporting-engine-19.0-bi_sql_editor
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-19-0/reporting-engine-19-0-bi_sql_editor/
Currently translated at 100.0% (148 of 148 strings)

Translation: reporting-engine-19.0/reporting-engine-19.0-bi_sql_editor
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-19-0/reporting-engine-19-0-bi_sql_editor/it/
Pure rename (with the manifest entry), so that the content changes of the
migration to 20.0 show up as a diff of this file.

Assisted-by: Claude Opus 5.5
Assisted-by: Claude Opus 5.5
…trictions

- `_force_unlink` is not read anymore in 20.0; use `force_delete` so that
  setting a view back to draft does not fail when a view on the generated
  model has been customized.
- post-migration: also consider archived restrictions and prefer the one
  matching `domain_force`.

Assisted-by: Claude Opus 5.5
Without a name, the breadcrumb shows "Unnamed" when opening the view.

Assisted-by: Claude Opus 5.5
Setting a view with a customized view on its model back to draft makes Odoo
log a warning about the force-deleted fields. The test now asserts this
warning, so it no longer ends up in the log checked by the CI.

Assisted-by: Claude Opus 5.5
The field links the global 'ir.access' restriction of the view's model,
it is not a record rule anymore. _prepare_rule is renamed to
_prepare_access accordingly.

The former rule_id holds ids of the 'ir.rule' table and is not migrated:
the post-migration links the restriction found (or created) to access_id,
the old column is dropped with the field at the end of the update. So the
pre-migration that emptied rule_id is not needed anymore.

Assisted-by: Claude Opus 5.5
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.