Skip to content

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

Open
wpichler wants to merge 142 commits into
OCA:20.0from
Callino:20.0-mig-bi_sql_editor
Open

wpichler wants to merge 142 commits into
OCA:20.0from
Callino:20.0-mig-bi_sql_editor

Conversation

@wpichler

Copy link
Copy Markdown

Migration of bi_sql_editor to 20.0, following the OCA migration guide (19.0 history replayed with git format-patch | git am).

Depends on:

Changes:

  • Version 20.0.1.0.0, removed 19.0 migration script and the 17.0→18.0 credits line
  • Security: ir.model.access.csv converted to ir.access.csv with odoo-bin upgrade_code (19.4-00-ir-access). The former _all lines without group and without permissions are dropped, they grant nothing.
  • Generated models: group permissions are created as ir.access (operation r), the global ir.rule is now a global ir.access restriction (no group, operation crud, domain = domain_force). rule_id now points to ir.access. _drop_model_access only removes the group permissions, so the restriction stays linked.
  • Migration 20.0.1.0.0: pre-migration clears rule_id (former ir.rule ids), post-migration relinks it to the global restriction of each generated model (or creates it).
  • Cron nextcall uses fields.Datetime.now() (UTC) instead of local datetime.now() (ruff DTZ005), map(lambda) replaced by a generator (C417).

Not changed: ruff RUF012 (mutable class attributes such as _inherit / selection lists) is still reported by this repo's current .ruff.toml. The OCA template ignores RUF012 for 20.0 since OCA/oca-addons-repo-template#376, so it should disappear once the repo is updated with copier.

Tested locally on Odoo 20.0 / PostgreSQL 16 with #1220: module installs, 7 tests, 0 failed, 0 errors. Additionally checked manually: view processed to ui_valid creates the group permission and the restriction with the domain, pre/post-migration relink rule_id, button_update_model_access keeps the restriction.

🤖 Generated with Claude Code

legalsylvain and others added 30 commits October 28, 2026 17:02
…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/
oca-ci and others added 26 commits October 28, 2026 17:02
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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/
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/
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oca-cla-bot

oca-cla-bot Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.