[20.0][MIG] bi_sql_editor: Migration to 20.0 #1224
All Vouch review confidence checks passed
Residual risk 0.37 = Change Risk (0.67) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.67 · 224 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.324
Sensitive Paths
sensitive_paths
0.067
Real PR Conversation Timeline
1 comments
"Review active on #1224"
general
weight: 0.35
legalsylvain
Migration of
bi_sql_editorto 20.0, following the OCA migration guide (19.0 history replayed withgit format-patch | git am).Depends on:
sql_request_abstract), referenced intest-requirements.txtChanges:
ir.model.access.csvconverted toir.access.csvwithodoo-bin upgrade_code(19.4-00-ir-access). The former_alllines without group and without permissions are dropped, they grant nothing.ir.access(operationr), the globalir.ruleis now a globalir.accessrestriction (no group, operationcrud, domain =domain_force).rule_idnow points toir.access._drop_model_accessonly removes the group permissions, so the restriction stays linked.rule_id(formerir.ruleids), post-migration relinks it to the global restriction of each generated model (or creates it).nextcallusesfields.Datetime.now()(UTC) instead of localdatetime.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_validcreates the group permission and the restriction with the domain, pre/post-migration relinkrule_id,button_update_model_accesskeeps the restriction.Assisted-by: Claude Opus 5.5